-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.json
130 lines (130 loc) · 3.02 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"env": {
"es6": true,
"browser": true
},
"plugins": ["eslint-plugin-react", "react-hooks", "jsx-a11y"],
"parserOptions": {
"sourceType": "module"
},
"extends": ["airbnb", "prettier", "plugin:jsx-a11y/recommended"],
"rules": {
"no-cond-assign": 1,
"no-console": 0,
"no-constant-condition": 1,
"no-control-regex": 1,
"no-debugger": 1,
"no-dupe-args": 1,
"no-dupe-keys": 1,
"no-duplicate-case": 1,
"no-empty-character-class": 1,
"no-empty": 1,
"no-ex-assign": 1,
"no-extra-boolean-cast": 1,
"no-extra-semi": 1,
"no-func-assign": 1,
"no-inner-declarations": 1,
"no-invalid-regexp": 1,
"no-irregular-whitespace": 1,
"no-negated-in-lhs": 1,
"no-nested-ternary": 0,
"no-obj-calls": 1,
"no-regex-spaces": 1,
"no-sparse-arrays": 1,
"no-unreachable": 1,
"use-isnan": 1,
"valid-typeof": 1,
"no-alert": 1,
"no-else-return": 1,
"no-eval": 1,
"no-extra-bind": 1,
"no-fallthrough": 1,
"no-octal": 1,
"no-proto": 1,
"no-param-reassign": 0,
"no-redeclare": [
1,
{
"builtinGlobals": true
}
],
"no-useless-call": 1,
"no-delete-var": 1,
"no-undef-init": 1,
"no-undef": 1,
"no-unused-vars": 1,
"camelcase": 1,
"eol-last": 1,
"indent": [
1,
2,
{
"SwitchCase": 1
}
],
"no-array-constructor": 1,
"no-continue": 1,
"no-lonely-if": 1,
"no-mixed-spaces-and-tabs": 1,
"no-new-object": 1,
"no-const-assign": 1,
"prefer-const": 1,
"prefer-spread": 1,
"import/no-extraneous-dependencies": 0,
"react/prop-types": 0,
"react/prefer-stateless-function": 0,
"react/jsx-filename-extension": 0,
"react/jsx-one-expression-per-line": 0,
"react/forbid-prop-types": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/no-noninteractive-element-interactions": 0,
"no-underscore-dangle": 0,
"react/button-has-type": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"react/jsx-props-no-spreading": 0,
"no-shadow": 0,
"consistent-return": 0,
"no-unused-expressions": 0,
"react/no-array-index-key": 0,
"jsx-a11y/mouse-events-have-key-events": 0
},
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "detect",
"flowVersion": "0.53"
},
"propWrapperFunctions": [
"forbidExtraProps",
{
"property": "freeze",
"object": "Object"
},
{
"property": "myFavoriteWrapper"
}
],
"linkComponents": [
"Hyperlink",
{
"name": "Link",
"linkAttribute": "to"
}
],
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules"]
},
"webpack": {
"config": "./webpack.config.babel.js",
"env": {
"env": "dev",
"production": true
}
}
}
}
}