-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
95 lines (95 loc) · 3.18 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
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
{
"env": {
"browser": true,
"es2019": true
},
"settings": {
"react": {
"version": "16.0"
}
},
"plugins": ["react", "react-hooks"],
"extends": ["eslint:recommended"],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"camelcase": ["error"],
"consistent-return": ["error"],
"curly": ["error"],
"default-param-last": ["error"],
"eol-last": ["error"],
"eqeqeq": ["error"],
"func-name-matching": ["error"],
"func-names": ["error"],
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"guard-for-in": ["error"],
"indent": ["error", 2, { "CallExpression": { "arguments": 2 }, "SwitchCase": 1 }],
"logical-assignment-operators": ["error", "never"],
"linebreak-style": ["error", "unix"],
"new-cap": ["error"],
"new-parens": ["error"],
"no-array-constructor": ["error"],
"no-caller": ["error"],
"no-duplicate-imports": ["error"],
"no-empty-static-block": ["error"],
"no-eval": ["error"],
"no-extend-native": ["error"],
"no-extra-bind": ["error"],
"no-extra-label": ["error"],
"no-extra-semi": ["error"],
"no-floating-decimal": ["error"],
"no-implicit-coercion": ["error"],
"no-implicit-globals": ["error"],
"no-implied-eval": ["error"],
"no-invalid-this": ["error"],
"no-lone-blocks": ["error"],
"no-lonely-if": ["error"],
"no-loop-func": ["error"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxBOF": 0, "maxEOF": 0 }],
"no-new": ["error"],
"no-new-func": ["error"],
"no-object-constructor": ["error"],
"no-octal-escape": ["error"],
"no-proto": ["error"],
"no-return-assign": ["error", "always"],
"no-script-url": ["error"],
"no-sequences": ["error"],
"no-shadow": ["error", { "builtinGlobals": true, "hoist": "all" }],
"no-template-curly-in-string": ["error"],
"no-throw-literal": ["error"],
"no-tabs": ["error"],
"no-trailing-spaces": ["error"],
"no-unneeded-ternary": ["error"],
"no-unused-expressions": ["error"],
"no-use-before-define": ["error", "nofunc"],
"no-useless-call": ["error"],
"no-useless-computed-key": ["error"],
"no-useless-constructor": ["error"],
"no-useless-rename": ["error"],
"no-var": ["error"],
"object-shorthand": ["error"],
"prefer-rest-params": ["error"],
"quotes": ["error", "double"],
"quote-props": ["error", "as-needed"],
"semi": ["error", "always"],
"semi-style": ["error", "last"],
"strict": ["error"],
"symbol-description": ["error"],
"unicode-bom": ["error"],
"react/no-danger": ["error"],
"react/no-deprecated": ["error"],
"react/no-did-mount-set-state": ["error"],
"react/no-did-update-set-state": ["error"],
"react/no-direct-mutation-state": ["error"],
"react/no-find-dom-node": ["error"],
"react/no-is-mounted": ["error"],
"react/no-string-refs": ["error"],
"react/prefer-es6-class": ["error"],
"react/prefer-stateless-function": ["warn"],
"react/require-render-return": ["error"],
"react-hooks/exhaustive-deps": ["error"],
"react-hooks/rules-of-hooks": ["error"]
},
"ignorePatterns": ["_site/dist/*", "_site/external/*.module.js"]
}