-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
39 lines (39 loc) · 1.1 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
{
"env": {
"es2021": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true
},
"plugins": [
"@typescript-eslint",
"@stylistic"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@stylistic/indent": ["error", 2, { "SwitchCase": 1, "ignoredNodes": ["PropertyDefinition"] }],
"@stylistic/no-trailing-spaces": ["warn"],
"@stylistic/object-curly-spacing": [2, "always"],
"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/keyword-spacing": ["error", { "before": true, "after": true }],
"@stylistic/eol-last": ["warn", "always"],
"@stylistic/comma-dangle": ["error", "never"],
"@stylistic/semi": ["error", "never"],
"@stylistic/quotes": ["error", "single"],
"@stylistic/member-delimiter-style": ["error", {
"multiline": {
"delimiter": "none",
"requireLast": false
},
"singleline": {
"delimiter": "comma",
"requireLast": false
}
}],
"@typescript-eslint/consistent-type-definitions": ["error", "type"]
}
}