-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.json
102 lines (102 loc) · 3.08 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
96
97
98
99
100
101
102
{
"env": {
"browser": true,
"node": true,
"commonjs": true,
"es2021": true,
"jquery": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"indent": ["error", 2],
"arrow-body-style": "warn",
"arrow-parens": [
"warn",
"always",
{
"requireForBlockBody": true
}
],
"camelcase": "warn",
"comma-dangle": ["warn", "never"],
"consistent-return": "off",
"class-methods-use-this": "off",
"function-paren-newline": "off",
"guard-for-in": "warn",
"import/no-extraneous-dependencies": "off",
"import/no-duplicates": "off",
"import/no-unresolved": "off",
"import/no-named-as-default": "off",
"max-len": ["warn", 160, 2],
"no-else-return": "warn",
"no-multi-assign": "warn",
"no-nested-ternary": "warn",
"no-use-before-define": ["error", "nofunc"],
"no-param-reassign": "warn",
"no-prototype-builtins": "warn",
"no-return-assign": "warn",
"no-restricted-syntax": "warn",
"no-shadow": "warn",
"no-underscore-dangle": "off",
"no-unused-vars": "warn",
"no-var": "warn",
"no-case-declarations": "off",
"one-var": "warn",
"one-var-declaration-per-line": "off",
"object-shorthand": "warn",
"prefer-destructuring": "warn",
"prefer-const": "warn",
"prefer-template": "warn",
"quotes": "warn",
"react/default-props-match-prop-types": "warn",
"react/forbid-prop-types": "off",
"react/jsx-boolean-value": "off",
"react/jsx-filename-extension": "off",
"react/jsx-no-undef": "warn",
"react/jsx-no-duplicate-props": "warn",
"react/jsx-no-bind": "warn",
"react/jsx-tag-spacing": "warn",
"react/no-array-index-key": "warn",
"react/no-find-dom-node": "warn",
"react/no-multi-comp": "off",
"react/no-unused-prop-types": "warn",
"react/no-unused-state": "warn",
"react/no-did-mount-set-state": "off",
"react/jsx-no-target-blank": "warn",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/require-default-props": "off",
"react/prefer-stateless-function": "warn",
"react/function-component-definition": ["error", {
"namedComponents": "arrow-function" ,
"unnamedComponents": "arrow-function"
}],
"react/sort-comp": "warn",
"vars-on-top": "warn",
"react/destructuring-assignment": "warn",
"no-redeclare": "warn",
"react/jsx-props-no-spreading": "off",
"react/state-in-constructor": "warn",
"implicit-arrow-linebreak": "off",
"react/no-access-state-in-setstate": "warn",
"react/button-has-type": "warn",
"react/jsx-pascal-case": "warn",
"react/jsx-closing-tag-location": "warn",
"react/no-unescaped-entities": "warn",
"no-multiple-empty-lines": "warn",
"operator-linebreak": "off",
"react/jsx-curly-newline": "warn",
"lines-between-class-members": "warn",
"react/jsx-fragments": "warn",
"prefer-object-spread": "warn",
"react/jsx-curly-brace-presence": "warn"
}
}