-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
65 lines (65 loc) · 1.84 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "filename-rules", "react-hooks"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-magic-numbers": "off",
"no-console": "warn",
"no-warning-comments": [
"warn",
{
"terms": ["TODO"],
"location": "start"
}
],
"no-alert": "warn",
"no-duplicate-imports": ["error", { "includeExports": true }],
"no-unused-private-class-members": "error",
"camelcase": "error",
"eqeqeq": "error",
"@typescript-eslint/member-ordering": "error",
"arrow-body-style": ["error", "as-needed"],
"prefer-const": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"lines-between-class-members": [
"error",
{
"enforce": [
{ "blankLine": "always", "prev": "*", "next": "method" },
{ "blankLine": "always", "prev": "method", "next": "*" },
{ "blankLine": "always", "prev": "field", "next": "field" }
]
},
{ "exceptAfterSingleLine": true }
],
"@typescript-eslint/no-non-null-assertion": "warn",
"no-fallthrough": "error",
"filename-rules/match": [2, "kebab-case"],
"object-shorthand": ["error", "always"],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "typeLike",
"format": ["PascalCase"]
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error"
}
}