forked from nexxtway/react-rainbow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
38 lines (38 loc) · 1.09 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
{
"extends": ["airbnb", "plugin:prettier/recommended"],
"plugins": [
"babel",
"react",
"jest",
"jsx-a11y",
"import",
"webdriverio",
"react-hooks",
"prettier"
],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx"] }],
"react/jsx-first-prop-new-line": "off",
"react/jsx-closing-bracket-location": "off",
"react/forbid-prop-types": "off",
"no-mixed-operators": "off",
"arrow-parens": ["error", "as-needed"],
"linebreak-style": 0,
"react/default-props-match-prop-types": ["error", { "allowRequiredDefaults": true }]
},
"env": {
"es6": true,
"node": true,
"browser": true,
"jest/globals": true,
"webdriverio/wdio": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
}
}