-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
93 lines (93 loc) · 2.51 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
86
87
88
89
90
91
92
93
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"root": true,
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"classes": true
}
},
"rules": {
"comma-dangle": 1,
"quotes": [1, "single"],
"no-undef": 2,
"prefer-const": "error",
"one-var": ["error", "never"],
"padded-blocks": ["error", "never"],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "*", "next": "export" },
{ "blankLine": "always", "prev": "export", "next": "export" },
{ "blankLine": "always", "prev": "export", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "if" },
{ "blankLine": "always", "prev": "if", "next": "*" },
{ "blankLine": "always", "prev": "const", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "const" },
{ "blankLine": "always", "prev": "let", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "let" },
{ "blankLine": "always", "prev": "var", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "var" },
{
"blankLine": "always",
"prev": "const",
"next": "let"
},
{
"blankLine": "never",
"prev": "const",
"next": "const"
},
{
"blankLine": "never",
"prev": "let",
"next": "let"
},
{
"blankLine": "never",
"prev": "var",
"next": "var"
},
{
"blankLine": "always",
"prev": "const",
"next": "let"
},
{
"blankLine": "always",
"prev": "const",
"next": "var"
},
{
"blankLine": "always",
"prev": "let",
"next": "var"
},
{ "blankLine": "always", "prev": "*", "next": "cjs-import" },
{ "blankLine": "always", "prev": "cjs-import", "next": "*" },
{ "blankLine": "never", "prev": "cjs-import", "next": "cjs-import" }
],
"global-strict": 0,
"indent": [1, 2, { "SwitchCase": 1 }],
"no-extra-semi": 1,
"no-underscore-dangle": 0,
"no-console": 1,
"no-unused-vars": 1,
"no-trailing-spaces": [1, { "skipBlankLines": true }],
"no-unreachable": 1,
"no-alert": 1,
"semi": 1
}
}