-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
29 lines (29 loc) · 895 Bytes
/
.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
{
"plugins": ["import"], // configure import plugin manually
"parser": "@typescript-eslint/parser",
"rules": {
"semi": "error",
"eol-last": "error",
"indent": ["error", 2],
"key-spacing": ["error"],
"no-unused-vars": "error",
"no-multi-spaces":"error",
"space-infix-ops": "warn",
"no-trailing-spaces": "error",
"newline-before-return": "error",
"object-curly-spacing": ["error", "always"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}
],
"import/newline-after-import": ["error", { "count": 1 }],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }]
}
}