-
Notifications
You must be signed in to change notification settings - Fork 20
/
.eslintrc.json
85 lines (85 loc) · 2.25 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
75
76
77
78
79
80
81
82
83
84
85
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": ["eslint:recommended", "eslint-config-prettier"],
"plugins": ["eslint-plugin-react", "eslint-plugin-import"],
"rules": {
"comma-dangle": ["error", "never"],
"curly": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-deprecated": "warn",
"import/no-duplicates": "error",
"import/no-mutable-exports": "error",
"import/no-namespace": "error",
"import/no-self-import": "error",
"import/no-useless-path-segments": "error",
"import/order": [
"error",
{
"newlines-between": "never",
"alphabetize": {
"order": "asc",
"caseInsensitive": false
}
}
],
"no-console": "error",
"quotes": ["error", "single"]
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:eslint-plugin-react/recommended",
"plugin:eslint-plugin-react-hooks/recommended",
"plugin:eslint-plugin-import/typescript"
],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/array-type": [
"error",
{
"default": "array-simple"
}
],
"@typescript-eslint/consistent-type-assertions": [
"error",
{
"assertionStyle": "as"
}
],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "no-public"
}
],
"@typescript-eslint/method-signature-style": ["error", "method"],
"@typescript-eslint/no-non-null-assertion": "off",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": "off"
},
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
}
},
{
"files": ["gatsby-config.js", "gatsby/**/*"],
"env": {
"node": true
}
}
]
}