-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc
79 lines (79 loc) · 1.88 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
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
75
76
77
78
79
{
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended"
],
"plugins": ["@typescript-eslint", "react", "prettier"],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"node": true
},
"rules": {
"object-shorthand": "error",
"no-debugger": 0,
"no-shadow": 0,
"no-console": 0,
"new-cap": 0,
"strict": 0,
"no-unused-expressions": 0,
"eol-last": 0,
"quotes": [2, "single", { "avoidEscape": true }],
"no-param-reassign": 0,
"import/extensions": 0,
"import/prefer-default-export": 0,
"no-use-before-define": 0,
"import/first": 0,
"linebreak-style": 0,
"import/no-cycle": 0,
"prefer-destructuring": 0,
"import/no-default-export": "error",
"import/no-deprecated": "off",
"import/no-extraneous-dependencies": "off",
"import/order": [
"error",
{
"newlines-between": "always",
"groups": [
"builtin",
"external",
"internal",
["sibling", "parent"],
"index"
]
}
],
"import/no-unresolved": 0,
"prefer-object-spread": 0,
"arrow-parens": 0,
"indent": 0,
"react/prop-types": 0,
"prettier/prettier": [
"error",
{
"usePrettierrc": true,
"endOfLine": "auto"
}
],
"react-hooks/exhaustive-deps": 1,
"react/no-multi-comp": [2, { "ignoreStateless": false }]
},
"overrides": [
{
"files": ["src/pages/**/*.tsx", "src/templates/**/*.tsx", "stylelint.config.js"],
"rules": {
"import/no-default-export": 0
}
},
{
"files": ["src/pages/**/*.tsx", "src/templates/**/*.tsx"],
"rules": {
"react/no-multi-comp": 0
}
}
]
}