-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
35 lines (34 loc) · 872 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
29
30
31
32
33
34
35
{
"env": {
"browser": true,
"es6": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": ["airbnb", "plugin:react/recommended"],
"plugins": ["react", "react-hooks"],
"rules": {
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "off",
"no-shadow": "off",
"indent": "off",
"react/jsx-indent": "off",
"import/prefer-default-export": "off",
"react/jsx-indent-props": "off",
"react/jsx-props-no-spreading" : "off",
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
"no-param-reassign": [2, { "props": false }]
},
"ignorePatterns": [
"dist/",
"build/"
]
}