This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc
110 lines (69 loc) · 2.15 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
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
{
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"plugins": ["@babel", "react", "react-hooks"],
"settings": {
"import/resolver": {
"webpack": {
"config": "./config/webpack.common.js"
}
}
},
"rules": {
"quotes": [2, "single", { "avoidEscape": true }],
"class-methods-use-this": "off",
"import/no-extraneous-dependencies": "off",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
["internal", "parent", "sibling", "index"]
],
"newlines-between": "always"
}
],
"no-debugger": "warn",
"no-unused-vars": "warn",
"import/prefer-default-export": "off",
"new-cap": ["error", { "capIsNew": false, "newIsCap": true }],
"no-underscore-dangle": ["error", { "allow": ["_paq"] }],
"no-unused-expressions": "off",
"no-use-before-define": ["error", "nofunc"],
"react/forbid-prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-sort-props": ["error", { "ignoreCase": true }],
"react/no-string-refs": "off",
"react/no-unused-state": "warn",
"react/no-unused-prop-types": ["warn", { "skipShapeProps": true }],
"react/prefer-stateless-function": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"linebreak-style": 0,
"no-restricted-globals": ["error", "history"],
"prefer-destructuring": "off",
"react/destructuring-assignment": "off",
"react/require-default-props": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": {
"some": [ "nesting", "id" ]
},
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-tabindex": "off",
"react/no-array-index-key": "off",
"max-len": ["warn", { "code": 120}],
"no-plusplus": "off",
"no-undef": "warn",
"arrow-body-style": "off",
"quote-props": "off",
"no-case-declarations": "off"
}
}