forked from nexxtway/react-rainbow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
28 lines (28 loc) · 931 Bytes
/
.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
{
"extends": "airbnb",
"plugins": ["babel", "react", "jest", "jsx-a11y", "import", "webdriverio", "react-hooks"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"indent": ["error", 4, { "SwitchCase": 1 }],
"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"]
},
"env": {
"es6": true,
"node": true,
"browser": true,
"jest/globals": true,
"webdriverio/wdio": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
}
}