-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
90 lines (90 loc) · 2.01 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
// "root": true,
"extends": ["eslint:recommended","plugin:jest/recommended"],
"plugins": ["jest"],
"globals": {
"console": "readonly"
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2021
},
"env": {
"es6": true,
"node": true
},
"rules": {
"array-bracket-spacing": ["warn", "always"],
"arrow-parens": ["warn", "always"],
"brace-style": ["warn", "stroustrup"],
"comma-dangle": ["warn", "always-multiline"],
"comma-spacing": ["warn", { "before": false, "after": true }],
"computed-property-spacing": ["warn", "always"],
"curly": ["warn", "all"],
"eqeqeq": ["error", "smart"],
"func-call-spacing": ["warn", "never"],
"indent": [
"warn",
"tab",
{
"SwitchCase": 1
}
],
"key-spacing": [
"warn",
{
"beforeColon": false,
"afterColon": true
}
],
"keyword-spacing": [
"warn",
{
"before": true,
"after": true
}
],
"no-console": "off",
"no-lonely-if": "warn",
"no-multi-spaces": ["warn", { "ignoreEOLComments": true }],
"no-shadow": "error",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"no-trailing-spaces": "warn",
"object-curly-spacing": ["warn", "always"],
"prefer-template": "warn",
"semi": [
"warn",
"never",
{ "beforeStatementContinuationChars": "always" }
],
"semi-spacing": ["warn", { "before": false, "after": true }],
"spaced-comment": ["warn", "always"],
"space-in-parens": ["warn", "always"],
"space-infix-ops": ["warn"],
"space-unary-ops": [
"warn",
{
"words": true,
"nonwords": false,
"overrides": {
"!": true,
"!!": true
}
}
],
"switch-colon-spacing": ["warn"],
"template-curly-spacing": ["warn", "always"],
"template-tag-spacing": ["warn", "always"],
//==========
"camelcase": "off",
"no-case-declarations": "off",
"no-multiple-empty-lines": ["warn", { "max": 1 }],
"quotes": [
"warn",
"single",
{ "avoidEscape": true, "allowTemplateLiterals": true }
]
},
"ignorePatterns": ["*temp", "**/build/*", "**/*.ts", "**/*.json"]
}