-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
74 lines (74 loc) · 1.95 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"extends": [
"airbnb",
// "plugin:react/recommended",
"plugin:import/errors",
"prettier",
"plugin:prettier/recommended"
],
"plugins": ["react", "react-hooks", "unused-imports", "prettier"],
"env": { "es6": true, "node": true, "browser": true },
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"rules": {
"func-names": "off",
"arrow-body-style": "off",
"no-process-env": "off",
"new-cap": "off",
// "indent": [2, 2],
"quotes": ["warn", "single"],
"max-lines": [2, 500],
"max-len": [
1,
120,
2,
{ "ignoreComments": true, "ignoreTemplateLiterals": true }
],
"no-extra-semi": "off",
"no-trailing-spaces": "warn",
"no-plusplus": "off",
"comma-dangle": "off",
"linebreak-style": [2, "windows"],
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"prettier/prettier": ["error"],
"react/require-default-props": "off",
"react/jsx-wrap-multilines": "off",
"react/jsx-closing-tag-location": "off",
"react/no-unused-prop-types": "off",
"react/forbid-prop-types": [
"off",
{
"forbid": ["object", "array"],
"checkContextTypes": false,
"checkChildContextTypes": false
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/anchor-is-valid": "warn",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"no-unused-vars": "off",
"unused-imports/no-unused-vars": [
"warn",
{ "vars": "all", "args": "none", "ignoreRestSiblings": true }
],
"unused-imports/no-unused-imports": 0
},
"globals": {
"$": "readonly",
"VERSION": "readonly"
},
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": ["node_modules/", "webpack.*.js", "src/core", "libs/", "dist/"]
}