eslint-config-cityssm 32.0.0 → 32.2.0
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.js +30 -1
- package/eslint.config.ts +30 -1
- package/package.json +1 -1
package/eslint.config.js
CHANGED
|
@@ -280,7 +280,36 @@ export const configWebApp = defineConfig(config, {
|
|
|
280
280
|
},
|
|
281
281
|
extends: ['html/recommended'],
|
|
282
282
|
rules: {
|
|
283
|
-
'html/indent': ['warn', 2]
|
|
283
|
+
'html/indent': ['warn', 2],
|
|
284
|
+
'html/require-closing-tags': [
|
|
285
|
+
'error',
|
|
286
|
+
{
|
|
287
|
+
selfClosing: 'always'
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
'html/sort-attrs': [
|
|
291
|
+
'warn',
|
|
292
|
+
{
|
|
293
|
+
// https://codeguide.co/#html-attribute-order
|
|
294
|
+
priority: [
|
|
295
|
+
'class',
|
|
296
|
+
'id',
|
|
297
|
+
'name',
|
|
298
|
+
{ pattern: 'data-.*' },
|
|
299
|
+
'src',
|
|
300
|
+
'for',
|
|
301
|
+
'type',
|
|
302
|
+
'href',
|
|
303
|
+
'value',
|
|
304
|
+
'title',
|
|
305
|
+
'alt',
|
|
306
|
+
'role',
|
|
307
|
+
{ pattern: 'aria-.*' },
|
|
308
|
+
'tabindex',
|
|
309
|
+
'style'
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
]
|
|
284
313
|
}
|
|
285
314
|
});
|
|
286
315
|
export { default as cspellFlagWords } from './lists/cspell.flagWords.js';
|
package/eslint.config.ts
CHANGED
|
@@ -332,7 +332,36 @@ export const configWebApp: ConfigObject[] = defineConfig(
|
|
|
332
332
|
|
|
333
333
|
extends: ['html/recommended'],
|
|
334
334
|
rules: {
|
|
335
|
-
'html/indent': ['warn', 2]
|
|
335
|
+
'html/indent': ['warn', 2],
|
|
336
|
+
'html/require-closing-tags': [
|
|
337
|
+
'error',
|
|
338
|
+
{
|
|
339
|
+
selfClosing: 'always'
|
|
340
|
+
}
|
|
341
|
+
],
|
|
342
|
+
'html/sort-attrs': [
|
|
343
|
+
'warn',
|
|
344
|
+
{
|
|
345
|
+
// https://codeguide.co/#html-attribute-order
|
|
346
|
+
priority: [
|
|
347
|
+
'class',
|
|
348
|
+
'id',
|
|
349
|
+
'name',
|
|
350
|
+
{ pattern: 'data-.*' },
|
|
351
|
+
'src',
|
|
352
|
+
'for',
|
|
353
|
+
'type',
|
|
354
|
+
'href',
|
|
355
|
+
'value',
|
|
356
|
+
'title',
|
|
357
|
+
'alt',
|
|
358
|
+
'role',
|
|
359
|
+
{ pattern: 'aria-.*' },
|
|
360
|
+
'tabindex',
|
|
361
|
+
'style'
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
]
|
|
336
365
|
}
|
|
337
366
|
}
|
|
338
367
|
)
|