@hg-ts/linter 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint.config.mjs +12 -3
- package/package.json +1 -1
package/eslint.config.mjs
CHANGED
|
@@ -187,7 +187,13 @@ const commonRules = {
|
|
|
187
187
|
'ignoreGlobals': true,
|
|
188
188
|
},
|
|
189
189
|
],
|
|
190
|
-
'capitalized-comments':
|
|
190
|
+
'capitalized-comments': [
|
|
191
|
+
'error',
|
|
192
|
+
'always',
|
|
193
|
+
{
|
|
194
|
+
ignorePattern: 'v8\ ignore',
|
|
195
|
+
},
|
|
196
|
+
],
|
|
191
197
|
'comma-dangle': [
|
|
192
198
|
'error',
|
|
193
199
|
'always-multiline',
|
|
@@ -237,7 +243,7 @@ const commonRules = {
|
|
|
237
243
|
'code': 120,
|
|
238
244
|
'tabWidth': 2,
|
|
239
245
|
'comments': 150,
|
|
240
|
-
'ignoreStrings': true
|
|
246
|
+
'ignoreStrings': true,
|
|
241
247
|
},
|
|
242
248
|
],
|
|
243
249
|
'max-lines': [
|
|
@@ -269,7 +275,10 @@ const commonRules = {
|
|
|
269
275
|
],
|
|
270
276
|
'new-cap': 'off',
|
|
271
277
|
'new-parens': 'error',
|
|
272
|
-
'newline-per-chained-call': [
|
|
278
|
+
'newline-per-chained-call': [
|
|
279
|
+
'error',
|
|
280
|
+
{ ignoreChainWithDepth: 3 },
|
|
281
|
+
],
|
|
273
282
|
'no-array-constructor': 'error',
|
|
274
283
|
'no-bitwise': 'error',
|
|
275
284
|
'no-continue': 'off',
|