-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy path.eslintrc
49 lines (48 loc) · 1.25 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
{
"env": {
"node": true,
"browser": true,
"jest": true,
"es6": true
},
"globals": {
"window": true,
"global": true,
"document": true,
"React": "writable"
},
"extends": ["eslint:recommended", "plugin:react-hooks/recommended", "airbnb"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018
},
"plugins": ["react", "react-hooks"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/prop-types": 0,
"react/display-name": [0, { "ignoreTranspilerName": true }],
"no-console": ["warn"],
"max-len": ["warn", 120],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"arrow-body-style": ["error", "always"],
"object-curly-newline": "off",
"comma-dangle": ["error", "only-multiline"],
"linebreak-style": "off",
"operator-linebreak": ["error", "after"],
"no-param-reassign": 0,
"template-curly-spacing": "off",
"indent": "off",
"import/no-cycle": [0]
}
}