linted 21.0.0-rc.13 → 21.0.0-rc.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,7 @@ import {
6
6
  Last,
7
7
  Never,
8
8
  Strict,
9
+ Consistent,
9
10
  } from "../../_strings";
10
11
 
11
12
  export default [
@@ -18,7 +19,7 @@ export default [
18
19
  multiline: true,
19
20
  minItems: null,
20
21
  },
21
- ],
22
+ ] /* https://eslint.org/docs/latest/rules/array-bracket-newline */,
22
23
  "array-bracket-spacing": [
23
24
  ERROR,
24
25
  Never,
@@ -27,37 +28,29 @@ export default [
27
28
  objectsInArrays: false,
28
29
  arraysInArrays: false,
29
30
  },
30
- ],
31
+ ] /* https://eslint.org/docs/latest/rules/array-bracket-spacing */,
31
32
  "array-element-newline": [
32
33
  ERROR,
33
- {
34
- ArrayExpression: {
35
- consistent: true,
36
- multiline: true,
37
- minItems: 4,
38
- },
39
- ArrayPattern: {
40
- consistent: true,
41
- multiline: true,
42
- minItems: 4,
43
- },
44
- },
45
- ],
34
+ Consistent,
35
+ ] /* https://eslint.org/docs/latest/rules/array-element-newline */,
46
36
  "brace-style": [
47
37
  ERROR,
48
38
  "stroustrup",
49
39
  {
50
40
  allowSingleLine: true,
51
41
  },
52
- ],
53
- "comma-dangle": [ERROR, AlwaysMultiline],
42
+ ] /* https://eslint.org/docs/latest/rules/brace-style */,
43
+ "comma-dangle": [
44
+ ERROR,
45
+ AlwaysMultiline,
46
+ ] /* https://eslint.org/docs/latest/rules/comma-dangle */,
54
47
  "comma-spacing": [
55
48
  ERROR,
56
49
  {
57
50
  before: false,
58
51
  after: true,
59
52
  },
60
- ],
53
+ ] /* https://eslint.org/docs/latest/rules/comma-spacing */,
61
54
  "comma-style": [
62
55
  ERROR,
63
56
  Last,
@@ -76,8 +69,11 @@ export default [
76
69
  NewExpression: false,
77
70
  },
78
71
  },
79
- ],
80
- "eol-last": [ERROR, Always],
72
+ ] /* https://eslint.org/docs/latest/rules/comma-style */,
73
+ "eol-last": [
74
+ ERROR,
75
+ Always,
76
+ ] /* https://eslint.org/docs/latest/rules/eol-last */,
81
77
  "key-spacing": [
82
78
  ERROR,
83
79
  {
@@ -85,7 +81,7 @@ export default [
85
81
  afterColon: true,
86
82
  mode: Strict,
87
83
  },
88
- ],
84
+ ] /* https://eslint.org/docs/latest/rules/key-spacing */,
89
85
  indent: [
90
86
  ERROR,
91
87
  2,
@@ -106,8 +102,8 @@ export default [
106
102
  offsetTernaryExpressions: true,
107
103
  ignoreComments: false,
108
104
  },
109
- ],
110
- "no-mixed-spaces-and-tabs": ERROR,
105
+ ] /* https://eslint.org/docs/latest/rules/indent */,
106
+ "no-mixed-spaces-and-tabs": ERROR /* https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs */,
111
107
  "no-multi-spaces": [
112
108
  ERROR,
113
109
  {
@@ -118,7 +114,7 @@ export default [
118
114
  },
119
115
  includeTabs: true,
120
116
  },
121
- ],
117
+ ] /* https://eslint.org/docs/latest/rules/no-multi-spaces */,
122
118
  "no-multiple-empty-lines": [
123
119
  ERROR,
124
120
  {
@@ -126,46 +122,25 @@ export default [
126
122
  maxEOF: 1,
127
123
  maxBOF: 0,
128
124
  },
129
- ],
125
+ ] /* https://eslint.org/docs/latest/rules/no-multiple-empty-lines */,
130
126
  "no-tabs": [
131
127
  ERROR,
132
128
  {
133
129
  allowIndentationTabs: false,
134
130
  },
135
- ],
131
+ ] /* https://eslint.org/docs/latest/rules/no-tabs */,
136
132
  "no-trailing-spaces": [
137
133
  ERROR,
138
134
  {
139
135
  skipBlankLines: false,
140
136
  ignoreComments: false,
141
137
  },
142
- ],
143
- "no-whitespace-before-property": ERROR,
138
+ ] /* https://eslint.org/docs/latest/rules/no-trailing-spaces */,
139
+ "no-whitespace-before-property": ERROR /* https://eslint.org/docs/latest/rules/no-whitespace-before-property */,
144
140
  "object-curly-newline": [
145
141
  ERROR,
146
- {
147
- ObjectExpression: {
148
- consistent: true,
149
- multiline: true,
150
- minProperties: 4,
151
- },
152
- ObjectPattern: {
153
- consistent: true,
154
- multiline: true,
155
- minProperties: 4,
156
- },
157
- ImportDeclaration: {
158
- consistent: true,
159
- multiline: true,
160
- minProperties: 4,
161
- },
162
- ExportDeclaration: {
163
- consistent: true,
164
- multiline: true,
165
- minProperties: 4,
166
- },
167
- },
168
- ],
142
+ Consistent,
143
+ ] /* https://eslint.org/docs/latest/rules/object-curly-newline */,
169
144
  "object-curly-spacing": [
170
145
  ERROR,
171
146
  Always,
@@ -173,13 +148,12 @@ export default [
173
148
  arraysInObjects: true,
174
149
  objectsInObjects: true,
175
150
  },
176
- ],
151
+ ] /* https://eslint.org/docs/latest/rules/object-curly-spacing */,
177
152
  "object-property-newline": [
178
153
  ERROR,
179
154
  {
180
155
  allowAllPropertiesOnSameLine: true,
181
156
  },
182
- ],
183
- "spaced-comment": [ERROR, Always],
157
+ ] /* https://eslint.org/docs/latest/rules/object-property-newline */,
184
158
  },
185
159
  ] as const;
@@ -203,7 +203,10 @@ export default [
203
203
  },
204
204
  ],
205
205
  "svelte/sort-attributes": OFF /* INVESTIGATE: */,
206
- "svelte/spaced-html-comment": [ERROR, Always],
206
+ "svelte/spaced-html-comment": [
207
+ ERROR,
208
+ Always,
209
+ ],
207
210
 
208
211
  // #endregion STYLE
209
212
 
@@ -32,9 +32,18 @@ export default [
32
32
  },
33
33
  ],
34
34
  "@typescript-eslint/ban-tslint-comment": ERROR,
35
- "@typescript-eslint/class-literal-property-style": [ERROR, "fields"],
36
- "@typescript-eslint/consistent-generic-constructors": [ERROR, "constructor"],
37
- "@typescript-eslint/consistent-indexed-object-style": [ERROR, "record"],
35
+ "@typescript-eslint/class-literal-property-style": [
36
+ ERROR,
37
+ "fields",
38
+ ],
39
+ "@typescript-eslint/consistent-generic-constructors": [
40
+ ERROR,
41
+ "constructor",
42
+ ],
43
+ "@typescript-eslint/consistent-indexed-object-style": [
44
+ ERROR,
45
+ "record",
46
+ ],
38
47
  "@typescript-eslint/consistent-type-assertions": [
39
48
  ERROR,
40
49
  {
@@ -242,7 +251,10 @@ export default [
242
251
 
243
252
  },
244
253
  ],
245
- "@typescript-eslint/method-signature-style": [ERROR, "property"],
254
+ "@typescript-eslint/method-signature-style": [
255
+ ERROR,
256
+ "property",
257
+ ],
246
258
  "@typescript-eslint/naming-convention": OFF,
247
259
  "@typescript-eslint/no-array-delete": ERROR,
248
260
  "@typescript-eslint/no-base-to-string": [
@@ -504,7 +516,10 @@ export default [
504
516
  allowRegExp: false,
505
517
  }, /* investigate: make stricter */
506
518
  ],
507
- "@typescript-eslint/return-await": [ERROR, "in-try-catch"] /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
519
+ "@typescript-eslint/return-await": [
520
+ ERROR,
521
+ "in-try-catch",
522
+ ] /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
508
523
  "@typescript-eslint/strict-boolean-expressions": [
509
524
  ERROR,
510
525
  {
@@ -11,8 +11,14 @@ export default [
11
11
  enable,
12
12
  {
13
13
  // https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
14
- "yml/block-mapping-colon-indicator-newline": [ERROR, Never],
15
- "yml/block-mapping-question-indicator-newline": [ERROR, Never],
14
+ "yml/block-mapping-colon-indicator-newline": [
15
+ ERROR,
16
+ Never,
17
+ ],
18
+ "yml/block-mapping-question-indicator-newline": [
19
+ ERROR,
20
+ Never,
21
+ ],
16
22
  "yml/block-mapping": [
17
23
  ERROR,
18
24
  {
@@ -51,7 +57,10 @@ export default [
51
57
  "yml/no-empty-sequence-entry": ERROR,
52
58
  "yml/no-tab-indent": ERROR,
53
59
  "yml/no-trailing-zeros": ERROR,
54
- "yml/plain-scalar": [ERROR, Always],
60
+ "yml/plain-scalar": [
61
+ ERROR,
62
+ Always,
63
+ ],
55
64
  "yml/quotes": [
56
65
  ERROR,
57
66
  {
@@ -65,6 +65,9 @@ export default [
65
65
  maxBOF: 0,
66
66
  },
67
67
  ],
68
- "yml/spaced-comment": [ERROR, Always],
68
+ "yml/spaced-comment": [
69
+ ERROR,
70
+ Always,
71
+ ],
69
72
  },
70
73
  ] as const;