-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
66 lines (66 loc) · 1.62 KB
/
.eslintrc
File metadata and controls
66 lines (66 loc) · 1.62 KB
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
{
"extends": ["eslint:recommended", "plugin:react/recommended", "react-app"],
"env": {
"es6": true
},
"plugins": ["react", "simple-import-sort", "import", "unused-imports"],
"rules": {
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports",
"disallowTypeAnnotations": true
}
],
"eol-last": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/no-unresolved": "off",
"lines-between-class-members": ["error", "always"],
"newline-before-return": "error",
"no-console": [
"warn",
{
"allow": ["warn", "error", "info", "time", "timeEnd"]
}
],
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-extra-boolean-cast": "error",
"no-multiple-empty-lines": "error",
"no-unused-vars": "off",
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "export"
},
{
"blankLine": "any",
"prev": "export",
"next": "export"
}
],
"react/jsx-no-constructed-context-values": "error",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"unused-imports/no-unused-imports": "error"
},
"overrides": [
{
"files": ["*.d.ts"],
"rules": {
"@typescript-eslint/consistent-type-imports": "off"
}
}
]
}