-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
61 lines (61 loc) · 1.34 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'react',
],
rules: {
"comma-dangle": 1,
quotes: [0, "single"],
"global-strict": 0,
"no-extra-semi": 1,
"no-underscore-dangle": 0,
"no-console": 0,
"no-undef": "warn",
"no-unused-vars": [
"warn",
{
vars: "all",
args: "after-used",
ignoreRestSiblings: false,
varsIgnorePattern: "createElement",
},
],
"no-trailing-spaces": [1, { skipBlankLines: true }],
"no-unreachable": 1,
"no-alert": 0,
"no-mixed-spaces-and-tabs": 1,
"no-empty-pattern": 1,
"no-empty": 1,
"no-useless-escape": 1,
"no-case-declarations": 1,
"no-debugger": 1,
"react/no-string-refs": 1,
"react/react-in-jsx-scope": 2,
"react/no-direct-mutation-state": 1,
"react/prop-types": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/jsx-no-undef": 2,
"react/display-name": 0,
"react/no-deprecated": 0,
"react/no-unescaped-entities": 1,
"react/jsx-key": 1,
"react/jsx-no-target-blank": 1,
"react/no-find-dom-node": 1,
experimentalDecorators: 0,
},
};