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