-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
73 lines (71 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
{
"env": {
"browser": true,
"es2020": true,
"node": true
},
"extends": ["airbnb", "prettier", "plugin:react/recommended"],
"plugins": ["react", "prettier", "react-hooks", "import", "import-helpers"],
"globals": {
"JSX": "readonly",
"NodeJS": "readonly"
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"settings": {
"import/resolver": {
"alias": {
"map": [["~", "./src"]],
"extensions": [".js", ".jsx", ".json"]
}
}
},
"rules": {
"prettier/prettier": "error",
"indent": "off",
"comma-dangle": ["warn", "always-multiline"],
"implicit-arrow-linebreak": "off",
"no-plusplus": "off",
"class-methods-use-this": "off",
"prefer-template": "off",
"default-case": "off",
"radix": "off",
"no-unused-vars": ["warn", { "argsIgnorePattern": "_" }],
"no-restricted-syntax": "off",
"no-use-before-define": "off",
"max-classes-per-file": "off",
"no-unused-expressions": "off",
"no-console": "off",
"no-continue": "off",
"import/prefer-default-export": "off",
"import/extensions": ["warn", { "css": "always" }],
"import/no-unresolved": ["error", { "ignore": ["@env"] }],
"lines-between-class-members": "off",
"no-underscore-dangle": "off",
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always",
"groups": [
["module"],
"/^~/",
["parent", "sibling", "absolute", "index"]
],
"alphabetize": { "order": "asc", "ignoreCase": true }
}
],
"react/jsx-props-no-spreading": 0,
"react/jsx-filename-extension": [
"warn",
{ "extensions": [".jsx", ".tsx"] }
],
"react/prop-types": "off",
"react/no-unused-prop-types": "warn",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"jsx-a11y/anchor-is-valid": "off",
"react/style-prop-object": "off"
}
}