-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
128 lines (117 loc) · 2.83 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"root": true,
"extends": [
"eslint:recommended"
],
"plugins": [
"eslint-plugin-only-ascii"
],
"parserOptions": {
"ecmaVersion": 2021
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"globals": {
"globalThis": false
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"brace-style": ["error", "1tbs"],
"comma-dangle": "error",
"comma-spacing": "error",
"computed-property-spacing": "error",
"curly": "error",
"dot-notation": ["error", {
"allowPattern": "^(true|false)$"
}],
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always"],
"func-style": ["error", "expression"],
"indent": ["error", 2, {
"SwitchCase": 1,
"ignoredNodes": ["TemplateLiteral > *"]
}],
"key-spacing": "error",
"linebreak-style": ["error", "unix"],
"max-len": ["error", {
"code": 80,
"ignoreTemplateLiterals": true,
"ignoreUrls": true,
"ignorePattern": "^\\s*(import\\s|export\\s|const\\s.*=\\s*require\\(|[a-zA-Z0-9].*:\\s*require\\()"
}],
"max-statements-per-line": "error",
"multiline-comment-style": "error",
"no-console": "error",
"no-multiple-empty-lines": "error",
"no-restricted-globals": ["error", "window"],
"no-tabs": "error",
"no-trailing-spaces": "error",
"no-useless-concat": "error",
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"only-ascii/only-ascii": "error",
"padded-blocks": ["error", "never"],
"padding-line-between-statements": ["error",
{ "blankLine": "always", "prev": "block", "next": "*" },
{ "blankLine": "always", "prev": "block-like", "next": "*" },
{
"blankLine": "always",
"prev": ["multiline-let", "multiline-const"],
"next": ["multiline-let", "multiline-const"]
}
],
"prefer-arrow-callback": ["error", {
"allowUnboundThis": false
}],
"prefer-template": "error",
"quotes": ["error", "single", { "avoidEscape": true }],
"require-atomic-updates": 0,
"semi": "error",
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": "error",
"space-infix-ops": "error"
},
"overrides": [
{
"files": "bin/**/*",
"env": {
"browser": false
},
"rules": {
"no-console": 0
}
},
{
"files": "lib/**/*",
"env": {
"browser": false
},
"rules": {
"no-console": 0
}
},
{
"files": "src/**/*",
"env": {
"node": false
}
},
{
"files": "tests/**/*",
"globals": {
"describe": false,
"expect": false,
"jest": false,
"test": false
}
}
]
}