eslint-config-cityssm 32.2.1 → 32.2.3
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 +8 -0
- package/eslint.config.ts +11 -0
- package/package.json +1 -1
package/eslint.config.js
CHANGED
|
@@ -280,6 +280,7 @@ export const configWebApp = defineConfig(config, {
|
|
|
280
280
|
},
|
|
281
281
|
extends: ['html/recommended'],
|
|
282
282
|
rules: {
|
|
283
|
+
'html/attrs-newline': ['warn', { ifAttrsMoreThan: 3 }],
|
|
283
284
|
'html/indent': ['warn', 2],
|
|
284
285
|
'html/require-closing-tags': [
|
|
285
286
|
'error',
|
|
@@ -292,10 +293,12 @@ export const configWebApp = defineConfig(config, {
|
|
|
292
293
|
{
|
|
293
294
|
// https://codeguide.co/#html-attribute-order
|
|
294
295
|
priority: [
|
|
296
|
+
// Identification
|
|
295
297
|
'class',
|
|
296
298
|
'id',
|
|
297
299
|
'name',
|
|
298
300
|
{ pattern: 'data-.*' },
|
|
301
|
+
// Unique to specific elements
|
|
299
302
|
'src',
|
|
300
303
|
'for',
|
|
301
304
|
'type',
|
|
@@ -304,11 +307,16 @@ export const configWebApp = defineConfig(config, {
|
|
|
304
307
|
'min',
|
|
305
308
|
'max',
|
|
306
309
|
'step',
|
|
310
|
+
'minlength',
|
|
311
|
+
'maxlength',
|
|
312
|
+
// Accessibility
|
|
307
313
|
'title',
|
|
308
314
|
'alt',
|
|
309
315
|
'role',
|
|
310
316
|
{ pattern: 'aria-.*' },
|
|
311
317
|
'tabindex',
|
|
318
|
+
// Style
|
|
319
|
+
'rows',
|
|
312
320
|
'style',
|
|
313
321
|
{ pattern: 'on.*' }
|
|
314
322
|
]
|
package/eslint.config.ts
CHANGED
|
@@ -332,6 +332,7 @@ export const configWebApp: ConfigObject[] = defineConfig(
|
|
|
332
332
|
|
|
333
333
|
extends: ['html/recommended'],
|
|
334
334
|
rules: {
|
|
335
|
+
'html/attrs-newline': ['warn', { ifAttrsMoreThan: 3 }],
|
|
335
336
|
'html/indent': ['warn', 2],
|
|
336
337
|
'html/require-closing-tags': [
|
|
337
338
|
'error',
|
|
@@ -344,10 +345,13 @@ export const configWebApp: ConfigObject[] = defineConfig(
|
|
|
344
345
|
{
|
|
345
346
|
// https://codeguide.co/#html-attribute-order
|
|
346
347
|
priority: [
|
|
348
|
+
// Identification
|
|
347
349
|
'class',
|
|
348
350
|
'id',
|
|
349
351
|
'name',
|
|
350
352
|
{ pattern: 'data-.*' },
|
|
353
|
+
|
|
354
|
+
// Unique to specific elements
|
|
351
355
|
'src',
|
|
352
356
|
'for',
|
|
353
357
|
'type',
|
|
@@ -356,11 +360,18 @@ export const configWebApp: ConfigObject[] = defineConfig(
|
|
|
356
360
|
'min',
|
|
357
361
|
'max',
|
|
358
362
|
'step',
|
|
363
|
+
'minlength',
|
|
364
|
+
'maxlength',
|
|
365
|
+
|
|
366
|
+
// Accessibility
|
|
359
367
|
'title',
|
|
360
368
|
'alt',
|
|
361
369
|
'role',
|
|
362
370
|
{ pattern: 'aria-.*' },
|
|
363
371
|
'tabindex',
|
|
372
|
+
|
|
373
|
+
// Style
|
|
374
|
+
'rows',
|
|
364
375
|
'style',
|
|
365
376
|
{ pattern: 'on.*' }
|
|
366
377
|
]
|