forked from xindixu/complaza-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
45 lines (45 loc) · 1.29 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
43
44
45
{
"root": true,
"env": {
"browser": true
},
"extends": ["next/core-web-vitals", "airbnb", "plugin:prettier/recommended"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": ["error"],
"camelcase": 0,
"consistent-return": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"no-unused-vars": 0,
"jsx-a11y/label-has-for": 0,
"no-console": ["warn", { "allow": ["error", "debug", "warn"] }],
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-prototype-builtins": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"prefer-promise-reject-errors": 0,
"react/forbid-prop-types": 0,
"react/no-multi-comp": [1, { "ignoreStateless": true }],
"react/sort-comp": 0,
"react/jsx-props-no-spreading": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/first": 0,
"import/order": ["error", { "newlines-between": "ignore" }],
"react/destructuring-assignment": 0,
"react/prop-types": 0,
"new-cap": 0,
"react/react-in-jsx-scope": 0,
"react/jsx-filename-extension": 0
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"],
"moduleDirectory": ["src", "node_modules"]
}
}
}
}