-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
81 lines (81 loc) · 2.89 KB
/
.eslintrc.json
File metadata and controls
81 lines (81 loc) · 2.89 KB
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
{
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"prefer-const": "error",
"no-var": "error",
"no-new-object": "error",
"object-shorthand": ["error", "always"],
"quote-props": ["error", "as-needed"],
"prefer-object-spread": "error",
"no-array-constructor": "error",
"prefer-destructuring": ["error", {
"array": false,
"object": true
}],
"prefer-template": "error",
"template-curly-spacing": ["error", "always"],
"func-style": ["error", "expression"],
"prefer-rest-params": "error",
"default-param-last": ["error"],
"no-new-func": "error",
"no-loop-func": "error",
"space-before-function-paren": ["error", { "anonymous": "always", "named": "never" }],
"no-param-reassign": ["error", { "props": true }],
"prefer-spread": "error",
"prefer-arrow-callback": "error",
"arrow-spacing": "error",
"arrow-parens": ["error", "always"],
"arrow-body-style": ["error", "as-needed"],
"no-confusing-arrow": "error",
"no-useless-constructor": "error",
"no-dupe-class-members": "error",
"class-methods-use-this": "error",
"no-duplicate-imports": "error",
"object-curly-newline": ["error", { "consistent": true }],
"no-iterator": "error",
"dot-notation": "error",
"one-var": ["error", "never"],
"no-multi-assign": "error",
"no-plusplus": "error",
"eqeqeq": ["error", "always", {"null": "ignore"}],
"no-nested-ternary": "error",
"no-unneeded-ternary": "error",
"no-mixed-operators": "error",
"curly": "error",
"brace-style": "error",
"no-else-return": "error",
"spaced-comment": ["error", "always"],
"indent": ["error", 4],
"space-before-blocks": "error",
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
"max-len": ["error", { "code": 80,"ignoreStrings":true }],
"object-curly-spacing": ["error", "always"],
"comma-spacing": ["error", { "before": false, "after": true }],
"key-spacing": ["error", { "beforeColon": false }],
"no-trailing-spaces": "error",
"comma-dangle": ["error","always-multiline"],
"semi": "error",
"radix": "error",
"new-cap": ["error", { "newIsCap": true }],
"no-underscore-dangle": "error",
"no-restricted-globals": [
"error",
{
"name": "isNaN",
"message": "Use Number.isNaN instead."
},
{
"name": "isFinite",
"message": "Use Number.isFinite instead."
}
]
}
}