-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
114 lines (114 loc) · 2.64 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
103
104
105
106
107
108
109
110
111
112
113
114
{
"root": true,
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-react"]
},
"ecmaVersion": "latest",
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"env": {
"browser": true,
"es6": true,
"node": true,
"worker": true
},
"plugins": [
"react",
"react-hooks"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"react/react-in-jsx-scope": 0,
"react/prop-types": 0,
"react/display-name": 0,
"react/no-unescaped-entities": 0,
"react-hooks/exhaustive-deps": 0,
"array-callback-return": 2,
"arrow-spacing": [2, {
"before": true,
"after": true
}],
"block-spacing": [2, "always"],
"comma-dangle": [2, "never"],
"comma-style": [2, "last"],
"dot-location": [2, "property"],
"dot-notation": 2,
"eqeqeq": 2,
"indent": [2, 2, {
"SwitchCase": 1
}],
"no-const-assign": 2,
"no-var": 2,
"no-console": 0,
"no-case-declarations": 0,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty": 2,
"no-extra-boolean-cast": 2,
"no-extra-semi": 2,
"no-obj-calls": 2,
"no-tabs": 2,
"no-unexpected-multiline": 2,
"no-unreachable": 2,
"no-alert": 2,
"no-caller": 2,
"no-eval": 2,
"no-extra-bind": 2,
"no-implied-eval": 2,
"no-lone-blocks": 2,
"no-multi-spaces": 2,
"no-return-assign": 2,
"no-self-assign": 2,
"no-self-compare": 2,
"no-useless-call": 2,
"no-useless-concat": 2,
"no-useless-escape": 0,
"no-undef": 2,
"no-unused-vars": 2,
"no-lonely-if": 2,
"no-confusing-arrow": 2,
"no-useless-constructor": 2,
"no-dupe-class-members": 2,
"no-unneeded-ternary": 2,
"no-duplicate-imports": 2,
"no-iterator": 2,
"no-new-wrappers": 2,
"object-shorthand": 2,
"prefer-const": [2, {"destructuring": "all"}],
"prefer-spread": 2,
"prefer-rest-params": 2,
"prefer-arrow-callback": 2,
"prefer-template": 2,
"quotes": [2, "double", {
"avoidEscape": true,
"allowTemplateLiterals": true
}],
"radix": [2, "always"],
"require-atomic-updates": 0,
"semi": 2,
"space-before-blocks": 2,
"strict": [2, "safe"],
"space-in-parens": [2, "never"],
"space-before-function-paren": [2, {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"template-curly-spacing": 2,
"use-isnan": 2,
"valid-typeof": 2,
"valid-jsdoc": 2,
"wrap-iife": [2, "inside"]
}
}