-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.json
50 lines (50 loc) · 1.79 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"node": true,
"es2021": true
},
"plugins": [
"@stylistic"
],
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"ignorePatterns": [
"/*",
"!/assets"
],
"rules": {
"@stylistic/indent": ["error", 4],
"@stylistic/linebreak-style": ["error", "unix"],
"@stylistic/eol-last": ["error", "always"],
"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/brace-style": ["error", "1tbs"],
"@stylistic/comma-dangle": ["error", "always-multiline"],
"@stylistic/comma-spacing": ["error"],
"@stylistic/keyword-spacing": ["error"],
"@stylistic/no-multiple-empty-lines": ["error", {"max": 2, "maxEOF": 0, "maxBOF": 0}],
"@stylistic/no-trailing-spaces": ["error"],
"@stylistic/no-multi-spaces": ["error"],
"@stylistic/object-curly-spacing": ["error", "always"],
"@stylistic/quotes": ["error", "single", {"avoidEscape": true}],
"@stylistic/semi": ["error", "always"],
"@stylistic/space-before-blocks": ["error"],
"@stylistic/space-in-parens": ["error", "never"],
"camelcase": ["error", {"ignoreImports": true}],
"curly": ["error", "all"],
"eqeqeq": ["error", "always"],
"no-console": ["off"],
"no-duplicate-imports": ["error"],
"no-empty": ["error", {"allowEmptyCatch": true}],
"no-empty-function": ["error", {"allow": ["arrowFunctions", "constructors"]}],
"no-eval": ["error"],
"no-implicit-coercion": ["error"],
"no-implied-eval": ["error"],
"prefer-const": ["error"],
"sort-imports": ["error"],
"yoda": ["error", "always"]
}
}