forked from dafny-lang/ide-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
127 lines (127 loc) · 3.92 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": [ "warn", 2 ],
"max-depth": [ "warn", 3 ],
"linebreak-style": [ "warn", "unix" ],
"max-params": [ "warn", 4 ],
"no-trailing-spaces": "warn",
"no-unreachable": "warn",
"eqeqeq": [
"warn",
"always",
{
"null": "ignore"
}
],
"no-multi-spaces": "warn",
"space-before-blocks": [ "warn", "always" ],
"space-in-parens": [ "warn", "never" ],
"array-bracket-spacing": [ "warn", "always" ],
"semi": "off",
"@typescript-eslint/semi": [ "warn", "always" ],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^_$"
}
],
"object-curly-spacing": "off",
"operator-linebreak": [ "warn", "before" ],
"@typescript-eslint/object-curly-spacing": [ "warn", "always" ],
"@typescript-eslint/type-annotation-spacing": [ "warn" ],
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/no-implicit-any-catch": "warn",
"@typescript-eslint/strict-boolean-expressions": "warn",
"brace-style": "off",
"@typescript-eslint/brace-style": "warn",
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": "warn",
"comma-spacing": "off",
"@typescript-eslint/comma-spacing": "warn",
"@typescript-eslint/consistent-type-definitions": [ "warn", "interface" ],
"dot-notation": "off",
"@typescript-eslint/dot-notation": "warn",
"@typescript-eslint/explicit-member-accessibility": "warn",
"@typescript-eslint/explicit-module-boundary-types": "warn",
"func-call-spacing": "off",
"@typescript-eslint/func-call-spacing": "warn",
"keyword-spacing": "off",
"curly": "warn",
"@typescript-eslint/keyword-spacing": [
"warn",
{
"overrides": {
"if": { "after": false },
"for": { "after": false },
"while": { "after": false },
"catch": { "after": false },
"switch": { "after": false }
}
}
],
"@typescript-eslint/member-delimiter-style": [
"warn",
{
"multiline": {
"delimiter": "comma",
"requireLast": false
},
"singleline": {
"delimiter": "comma",
"requireLast": false
},
"overrides": {
"interface": {
"multiline": {
"delimiter": "semi",
"requireLast": true
}
}
}
}
],
"@typescript-eslint/method-signature-style": [ "warn", "method" ],
"require-await": "off",
"@typescript-eslint/require-await": "warn",
"@typescript-eslint/await-thenable": "warn",
"quotes": "off",
"@typescript-eslint/quotes": [ "warn", "single" ],
"@typescript-eslint/prefer-readonly": "warn",
"@typescript-eslint/prefer-includes": "warn",
"@typescript-eslint/prefer-string-starts-ends-with": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/unbound-method": "warn",
"@typescript-eslint/unified-signatures": "warn",
"@typescript-eslint/restrict-plus-operands": "warn",
"@typescript-eslint/space-infix-ops": "warn",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/prefer-regexp-exec": "warn",
"@typescript-eslint/prefer-reduce-type-parameter": "warn",
"@typescript-eslint/padding-line-between-statements": "warn",
"@typescript-eslint/require-array-sort-compare": "warn",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/array-type": "warn"
}
}