-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
53 lines (53 loc) · 1.51 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
{
"env": {
"node": true,
"commonjs": true,
"es6": true
},
"overrides": [
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"extends": "eslint:recommended",
"rules": {
"semi": ["warn", "always"],
"quotes": ["warn", "double", {
"allowTemplateLiterals": true
}],
"object-curly-spacing": ["warn", "always"],
"indent": ["off"],
"@typescript-eslint/indent": ["warn", "tab", { "SwitchCase": 1 }],
"space-before-blocks": ["warn", "always"],
"arrow-parens": ["warn", "as-needed", {
"requireForBlockBody": true
}],
"no-mixed-spaces-and-tabs": ["warn", "smart-tabs"],
"no-useless-escape": ["off"],
"no-async-promise-executor": ["off"],
"brace-style": ["error", "allman", {
"allowSingleLine": true
}],
"comma-spacing": ["error", {
"before": false,
"after": true
}],
"comma-dangle": ["warn", {
"arrays": "never",
"objects": "always",
"imports": "never",
"exports": "never",
"functions": "never"
}],
"no-unused-vars": ["warn", {
"vars": "local",
"args": "none",
"caughtErrors": "none"
}]
}
}