-
Notifications
You must be signed in to change notification settings - Fork 28
/
.eslintrc.json
42 lines (42 loc) · 1.11 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
39
40
41
42
{
"settings": {
"eslint.packageManager": "yarn"
},
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["prettier", "react-hooks"],
"extends": ["airbnb", "plugin:prettier/recommended", "prettier/react"],
"rules": {
"arrow-parens": "off",
"implicit-arrow-linebreak": "off",
"no-console": 1,
"no-confusing-arrow": "off",
"no-unused-vars": 1,
"no-use-before-define": 1,
"no-param-reassign": ["error", { "props": false }],
"prettier/prettier": "warn",
"import/order": ["warn", { "newlines-between": "always" }],
"react/jsx-props-no-spreading": 0,
"react/forbid-prop-types": 0,
"react/prop-types": 1,
"react/require-default-props": 1,
"react/jsx-one-expression-per-line": 1,
"no-nested-ternary": 0,
"lines-between-class-members": 0,
"react/no-this-in-sfc": 0,
"new-cap": 0,
"import/no-unresolved": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [".js"]
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}