-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
56 lines (56 loc) · 1.45 KB
/
.eslintrc
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
{
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react-hooks"
],
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"rules": {
"space-before-function-paren": "off",
"react/prefer-stateless-function": "warn",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/label-has-for": [ 2, {
"required": {
"every": [ "id" ]
}
}],
"jsx-a11y/label-has-associated-control": [ 2, {
"labelComponents": ["CustomInputLabel"],
"labelAttributes": ["label"],
"controlComponents": ["CustomInput"],
"depth": 3
}],
"max-len": ["error", {
"ignoreComments": true,
"ignoreStrings": true,
"code": 200
}],
"import/no-cycle": "off",
"react/prop-types": "off",
"linebreak-style": "off",
"global-require": "off",
"semi": "off",
"arrow-body-style": "off",
"comma-dangle": "off",
"class-methods-use-this": "off",
"quote-props": "off",
"no-underscore-dangle": ["error", { "allow": ["__REDUX_DEVTOOLS_EXTENSION__"] }],
"react/destructuring-assignment": "off",
"react/jsx-wrap-multilines": "off",
"react/jsx-one-expression-per-line": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}