-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
74 lines (74 loc) · 2.6 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
{
"extends": [
"airbnb-base",
"airbnb-typescript/base"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"parser": "@typescript-eslint/parser",
"rules": {
"no-unreachable-loop": "error",
"no-unsafe-optional-chaining": ["error", { "disallowArithmeticOperators": true }],
"no-useless-backreference": "error",
"default-case-last": "error",
"no-eq-null": "error",
"no-implicit-coercion": "error",
"init-declarations": "error",
"array-bracket-newline": ["error", "consistent"],
"array-element-newline": [
"error",
{ "ArrayExpression": "consistent", "ArrayPattern": { "multiline": true, "minItems": 5 } }
],
"func-style": ["error", "expression"],
"function-call-argument-newline": ["error", "consistent"],
"id-length": ["error", { "min": 2, "max": 40, "exceptions": ["i", "x", "y", "z", "e", "r"] }],
"max-depth": "error",
"max-nested-callbacks": ["error", 3],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var", "import"] },
{
"blankLine": "always",
"prev": "*",
"next": ["return", "export", "for", "if", "switch", "try", "while"]
},
{ "blankLine": "always", "prev": "import", "next": "*" },
{ "blankLine": "any", "prev": "import", "next": "import" },
{ "blankLine": "never", "prev": "*", "next": "case"},
{ "blankLine": "never", "prev": "*", "next": "default"}
],
"prefer-exponentiation-operator": "error",
"no-duplicate-imports": "error",
"import/default": "error",
"import/namespace": ["error", { "allowComputed": true }],
"import/no-unused-modules": ["error", { "unusedExports": true }],
"import/order": [
"error",
{
"newlines-between": "always",
"pathGroups": [
{
"pattern": "react",
"group": "builtin",
"position": "before"
}, {
"pattern": "React",
"group": "builtin",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["React", "react"],
"groups": ["builtin", "external", "internal", "index", "object", "unknown", ["parent", "sibling"]],
"alphabetize": {
"order": "asc",
"caseInsensitive": false
}
}
],
"import/no-anonymous-default-export": "error",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"import/prefer-default-export": "off"
}
}