eslint-config-cityssm 32.2.3 → 32.3.1
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 +11 -0
- package/eslint.config.ts +12 -0
- package/package.json +1 -1
package/eslint.config.js
CHANGED
|
@@ -282,6 +282,15 @@ export const configWebApp = defineConfig(config, {
|
|
|
282
282
|
rules: {
|
|
283
283
|
'html/attrs-newline': ['warn', { ifAttrsMoreThan: 3 }],
|
|
284
284
|
'html/indent': ['warn', 2],
|
|
285
|
+
'html/no-extra-spacing-attrs': [
|
|
286
|
+
'error',
|
|
287
|
+
{
|
|
288
|
+
disallowInAssignment: true,
|
|
289
|
+
disallowMissing: true,
|
|
290
|
+
disallowTabs: true,
|
|
291
|
+
enforceBeforeSelfClose: true
|
|
292
|
+
}
|
|
293
|
+
],
|
|
285
294
|
'html/require-closing-tags': [
|
|
286
295
|
'error',
|
|
287
296
|
{
|
|
@@ -316,8 +325,10 @@ export const configWebApp = defineConfig(config, {
|
|
|
316
325
|
{ pattern: 'aria-.*' },
|
|
317
326
|
'tabindex',
|
|
318
327
|
// Style
|
|
328
|
+
'placeholder',
|
|
319
329
|
'rows',
|
|
320
330
|
'style',
|
|
331
|
+
// JavaScript
|
|
321
332
|
{ pattern: 'on.*' }
|
|
322
333
|
]
|
|
323
334
|
}
|
package/eslint.config.ts
CHANGED
|
@@ -334,6 +334,15 @@ export const configWebApp: ConfigObject[] = defineConfig(
|
|
|
334
334
|
rules: {
|
|
335
335
|
'html/attrs-newline': ['warn', { ifAttrsMoreThan: 3 }],
|
|
336
336
|
'html/indent': ['warn', 2],
|
|
337
|
+
'html/no-extra-spacing-attrs': [
|
|
338
|
+
'error',
|
|
339
|
+
{
|
|
340
|
+
disallowInAssignment: true,
|
|
341
|
+
disallowMissing: true,
|
|
342
|
+
disallowTabs: true,
|
|
343
|
+
enforceBeforeSelfClose: true
|
|
344
|
+
}
|
|
345
|
+
],
|
|
337
346
|
'html/require-closing-tags': [
|
|
338
347
|
'error',
|
|
339
348
|
{
|
|
@@ -371,8 +380,11 @@ export const configWebApp: ConfigObject[] = defineConfig(
|
|
|
371
380
|
'tabindex',
|
|
372
381
|
|
|
373
382
|
// Style
|
|
383
|
+
'placeholder',
|
|
374
384
|
'rows',
|
|
375
385
|
'style',
|
|
386
|
+
|
|
387
|
+
// JavaScript
|
|
376
388
|
{ pattern: 'on.*' }
|
|
377
389
|
]
|
|
378
390
|
}
|