-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.json
49 lines (49 loc) · 1.63 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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "prettier"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
},
"rules": {
"no-console": "warn",
"no-debugger": "warn",
"no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"no-undef": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-extra-semi": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0 }],
"no-trailing-spaces": "error",
"no-var": "error",
"prefer-const": "error",
"semi": ["error", "always"],
"comma-spacing": ["error", { "before": false, "after": true }],
"eol-last": ["error", "always"],
"func-call-spacing": ["error", "never"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"no-extra-parens": ["error", "all", { "nestedBinaryExpressions": false }],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-spaced-func": "error",
"object-curly-spacing": ["error", "always"],
"prefer-arrow-callback": "error",
"prefer-numeric-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"quote-props": ["error", "as-needed"],
"space-before-blocks": "error",
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": ["error", { "words": true, "nonwords": false }],
"switch-colon-spacing": "error"
}
}