-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.json
77 lines (77 loc) · 2.54 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
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:jsx-a11y/recommended"
],
"plugins": ["@emotion"],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2022
},
"env": {
"es2021": true,
"node": true,
"browser": true
},
"rules": {
"indent": ["warn", 2, { "SwitchCase": 1 }],
"arrow-parens": ["warn", "always"],
"no-await-in-loop": "warn",
"no-prototype-builtins": "off",
"no-template-curly-in-string": "warn",
"require-atomic-updates": "error",
"accessor-pairs": ["warn", { "setWithoutGet": true }],
"array-callback-return": "error",
"complexity": "warn",
"consistent-return": "error",
"curly": ["warn", "all"],
"default-case": "warn",
"dot-location": ["warn", "property"],
"dot-notation": "warn",
"eqeqeq": ["error", "smart"],
"guard-for-in": "warn",
"max-classes-per-file": ["warn", 3],
"no-alert": "off",
"no-caller": "warn",
"no-empty-function": "error",
"no-extra-bind": "warn",
"no-extra-label": "warn",
"no-floating-decimal": "warn",
"no-implicit-coercion": "error",
"no-iterator": "warn",
"no-loop-func": "warn",
"no-multi-spaces": ["warn", { "ignoreEOLComments": true }],
"no-multi-str": "error",
"no-new-wrappers": "error",
"no-return-assign": "error",
"no-return-await": "warn",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "warn",
"no-useless-call": "warn",
"no-useless-return": "warn",
"radix": "warn",
"yoda": "warn",
// "semi": "warn",
"no-shadow": "warn",
"no-shadow-restricted-names": "warn",
"no-use-before-define": "warn",
"array-bracket-newline": ["warn", "consistent"],
"array-bracket-spacing": "warn",
"object-curly-spacing": ["warn", "always"],
"prefer-object-spread": "warn",
"quote-props": ["warn", "as-needed"],
"quotes": ["warn", "double", { "avoidEscape": true }],
"no-useless-computed-key": "warn",
"react/display-name": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "warn",
"react/jsx-no-target-blank": ["warn", { "allowReferrer": true }],
"react/no-children-prop": "off"
}
}