@luxass/eslint-config 4.2.3 → 4.2.5

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.
Files changed (103) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-5SDSWPKR.mjs → chunk-4YT54JFZ.mjs} +1 -1
  3. package/dist/{chunk-WRURTO5T.mjs → chunk-7ODEIBF5.mjs} +1 -1
  4. package/dist/{chunk-KJ7ZCBK4.mjs → chunk-AQRBQAKE.mjs} +1 -1
  5. package/dist/{chunk-K6TLNQJF.mjs → chunk-DCOLHWHC.mjs} +1 -2
  6. package/dist/{chunk-UMUUVFB7.mjs → chunk-EHWA727G.mjs} +1 -1
  7. package/dist/{chunk-FU5SRKZU.mjs → chunk-FNOIGW47.mjs} +1 -1
  8. package/dist/{chunk-ATRL3UZP.mjs → chunk-KOXCJL3C.mjs} +1 -0
  9. package/dist/{chunk-PYS26PF3.mjs → chunk-MMSZW2UW.mjs} +1 -1
  10. package/dist/{chunk-JUFHDXTH.mjs → chunk-MT5P5EKH.mjs} +1 -1
  11. package/dist/chunk-O2BXTQHK.mjs +117 -0
  12. package/dist/{chunk-BXBN56WI.mjs → chunk-QDSV5ONX.mjs} +1 -1
  13. package/dist/{chunk-C5YCKPY4.mjs → chunk-SPD4DGYN.mjs} +1 -1
  14. package/dist/{chunk-RNFKNSHW.mjs → chunk-UITQW3RA.mjs} +1 -1
  15. package/dist/{chunk-WOYZWHPM.mjs → chunk-V57HXOSW.mjs} +1 -1
  16. package/dist/{chunk-Q57BF3CR.mjs → chunk-WOBGA3K2.mjs} +1 -1
  17. package/dist/{chunk-ANUYBAYV.mjs → chunk-WSQOWO67.mjs} +1 -1
  18. package/dist/{chunk-5TJETBJG.mjs → chunk-XPKGXA67.mjs} +1 -1
  19. package/dist/{chunk-IASQD7KX.mjs → chunk-YO3IYQ2L.mjs} +3 -15
  20. package/dist/configs/astro.cjs +45 -7
  21. package/dist/configs/astro.d.cts +1 -1
  22. package/dist/configs/astro.d.ts +1 -1
  23. package/dist/configs/astro.mjs +2 -2
  24. package/dist/configs/comments.d.cts +1 -1
  25. package/dist/configs/comments.d.ts +1 -1
  26. package/dist/configs/formatters.d.cts +1 -1
  27. package/dist/configs/formatters.d.ts +1 -1
  28. package/dist/configs/formatters.mjs +2 -2
  29. package/dist/configs/ignores.cjs +1 -0
  30. package/dist/configs/ignores.d.cts +1 -1
  31. package/dist/configs/ignores.d.ts +1 -1
  32. package/dist/configs/ignores.mjs +2 -2
  33. package/dist/configs/imports.d.cts +1 -1
  34. package/dist/configs/imports.d.ts +1 -1
  35. package/dist/configs/imports.mjs +2 -2
  36. package/dist/configs/index.cjs +374 -22
  37. package/dist/configs/index.d.cts +1 -1
  38. package/dist/configs/index.d.ts +1 -1
  39. package/dist/configs/index.mjs +25 -17
  40. package/dist/configs/javascript.cjs +0 -1
  41. package/dist/configs/javascript.d.cts +1 -1
  42. package/dist/configs/javascript.d.ts +1 -1
  43. package/dist/configs/javascript.mjs +2 -2
  44. package/dist/configs/jsdoc.d.cts +1 -1
  45. package/dist/configs/jsdoc.d.ts +1 -1
  46. package/dist/configs/jsonc.d.cts +1 -1
  47. package/dist/configs/jsonc.d.ts +1 -1
  48. package/dist/configs/jsonc.mjs +2 -2
  49. package/dist/configs/markdown.d.cts +1 -1
  50. package/dist/configs/markdown.d.ts +1 -1
  51. package/dist/configs/markdown.mjs +2 -2
  52. package/dist/configs/nextjs.d.cts +1 -1
  53. package/dist/configs/nextjs.d.ts +1 -1
  54. package/dist/configs/nextjs.mjs +2 -2
  55. package/dist/configs/node.d.cts +1 -1
  56. package/dist/configs/node.d.ts +1 -1
  57. package/dist/configs/perfectionist.d.cts +1 -1
  58. package/dist/configs/perfectionist.d.ts +1 -1
  59. package/dist/configs/react.d.cts +1 -1
  60. package/dist/configs/react.d.ts +1 -1
  61. package/dist/configs/react.mjs +2 -2
  62. package/dist/configs/solid.d.cts +1 -1
  63. package/dist/configs/solid.d.ts +1 -1
  64. package/dist/configs/solid.mjs +2 -2
  65. package/dist/configs/sort.d.cts +1 -1
  66. package/dist/configs/sort.d.ts +1 -1
  67. package/dist/configs/stylistic.d.cts +1 -1
  68. package/dist/configs/stylistic.d.ts +1 -1
  69. package/dist/configs/tailwindcss.d.cts +1 -1
  70. package/dist/configs/tailwindcss.d.ts +1 -1
  71. package/dist/configs/tailwindcss.mjs +2 -2
  72. package/dist/configs/test.d.cts +1 -1
  73. package/dist/configs/test.d.ts +1 -1
  74. package/dist/configs/test.mjs +2 -2
  75. package/dist/configs/toml.d.cts +1 -1
  76. package/dist/configs/toml.d.ts +1 -1
  77. package/dist/configs/toml.mjs +2 -2
  78. package/dist/configs/typescript.cjs +2 -14
  79. package/dist/configs/typescript.d.cts +1 -1
  80. package/dist/configs/typescript.d.ts +1 -1
  81. package/dist/configs/typescript.mjs +2 -2
  82. package/dist/configs/unicorn.d.cts +1 -1
  83. package/dist/configs/unicorn.d.ts +1 -1
  84. package/dist/configs/unocss.d.cts +1 -1
  85. package/dist/configs/unocss.d.ts +1 -1
  86. package/dist/configs/unocss.mjs +2 -2
  87. package/dist/configs/vue.d.cts +1 -1
  88. package/dist/configs/vue.d.ts +1 -1
  89. package/dist/configs/vue.mjs +2 -2
  90. package/dist/configs/yaml.d.cts +1 -1
  91. package/dist/configs/yaml.d.ts +1 -1
  92. package/dist/configs/yaml.mjs +2 -2
  93. package/dist/globs.cjs +1 -0
  94. package/dist/globs.mjs +1 -1
  95. package/dist/index.cjs +61 -35
  96. package/dist/index.d.cts +1 -1
  97. package/dist/index.d.ts +1 -1
  98. package/dist/index.mjs +23 -23
  99. package/dist/{types-A-NO9UF1.d.cts → types-HqEzZfQU.d.cts} +6 -6
  100. package/dist/{types-A-NO9UF1.d.ts → types-HqEzZfQU.d.ts} +6 -6
  101. package/package.json +1 -1
  102. package/dist/chunk-GBLPCM3X.mjs +0 -79
  103. /package/dist/{chunk-ME2OAMS3.mjs → chunk-YGZJUKJC.mjs} +0 -0
@@ -43,11 +43,13 @@ __export(configs_exports, {
43
43
  node: () => node,
44
44
  perfectionist: () => perfectionist,
45
45
  react: () => react,
46
+ solid: () => solid,
46
47
  sortPackageJson: () => sortPackageJson,
47
48
  sortTsconfig: () => sortTsconfig,
48
49
  stylistic: () => stylistic,
49
50
  tailwindcss: () => tailwindcss,
50
51
  test: () => test,
52
+ toml: () => toml,
51
53
  typescript: () => typescript,
52
54
  unicorn: () => unicorn,
53
55
  unocss: () => unocss,
@@ -153,6 +155,7 @@ var GLOB_MARKDOWN = "**/*.md";
153
155
  var GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
154
156
  var GLOB_VUE = "**/*.vue";
155
157
  var GLOB_YAML = "**/*.y?(a)ml";
158
+ var GLOB_TOML = "**/*.toml";
156
159
  var GLOB_ASTRO = "**/*.astro";
157
160
  var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
158
161
  var GLOB_TESTS = [
@@ -198,6 +201,7 @@ var GLOB_EXCLUDE = [
198
201
  "**/.nuxt",
199
202
  "**/.next",
200
203
  "**/.vercel",
204
+ "**/.netlify",
201
205
  "**/.changeset",
202
206
  "**/.idea",
203
207
  "**/.cache",
@@ -601,7 +605,6 @@ async function javascript(options = {}) {
601
605
  "no-multi-str": "error",
602
606
  "no-new": "error",
603
607
  "no-new-func": "error",
604
- "no-new-object": "error",
605
608
  "no-new-symbol": "error",
606
609
  "no-new-wrappers": "error",
607
610
  "no-obj-calls": "error",
@@ -1126,7 +1129,7 @@ async function typescript(options = {}) {
1126
1129
  return {
1127
1130
  files: files2,
1128
1131
  ...ignores2 ? { ignores: ignores2 } : {},
1129
- name: `antfu:typescript:${typeAware ? "type-aware-parser" : "parser"}`,
1132
+ name: `luxass:typescript:${typeAware ? "type-aware-parser" : "parser"}`,
1130
1133
  languageOptions: {
1131
1134
  parser: parserTs,
1132
1135
  parserOptions: {
@@ -1157,18 +1160,6 @@ async function typescript(options = {}) {
1157
1160
  {
1158
1161
  name: "luxass:typescript:rules",
1159
1162
  files,
1160
- languageOptions: {
1161
- parser: parserTs,
1162
- parserOptions: {
1163
- extraFileExtensions: exts.map((ext) => `.${ext}`),
1164
- sourceType: "module",
1165
- ...tsconfigPath ? {
1166
- project: tsconfigPath,
1167
- tsconfigRootDir: import_node_process2.default.cwd()
1168
- } : {},
1169
- ...parserOptions
1170
- }
1171
- },
1172
1163
  rules: {
1173
1164
  ...renameRules(
1174
1165
  pluginTs.configs["eslint-recommended"].overrides[0].rules,
@@ -1253,7 +1244,7 @@ async function typescript(options = {}) {
1253
1244
  }
1254
1245
  },
1255
1246
  {
1256
- name: "antfu:typescript:rules-type-aware",
1247
+ name: "luxass:typescript:rules-type-aware",
1257
1248
  files: filesTypeAware,
1258
1249
  rules: {
1259
1250
  ...tsconfigPath ? typeAwareRules : {},
@@ -2123,9 +2114,10 @@ async function astro(options) {
2123
2114
  name: "luxass:astro:rules",
2124
2115
  files,
2125
2116
  languageOptions: {
2126
- // @ts-expect-error hmmm
2127
2117
  globals: {
2128
- ...pluginAstro.configs.base.overrides[0].env
2118
+ "astro/astro": true,
2119
+ "es2020": true,
2120
+ "node": true
2129
2121
  },
2130
2122
  parser: parserAstro,
2131
2123
  parserOptions: {
@@ -2134,31 +2126,68 @@ async function astro(options) {
2134
2126
  sourceType: "module"
2135
2127
  }
2136
2128
  },
2137
- // @ts-expect-error hmmm
2138
2129
  rules: {
2130
+ // Disallow conflicting set directives and child contents
2131
+ // https://ota-meshi.github.io/eslint-plugin-astro/rules/no-conflict-set-directives/
2132
+ "astro/no-conflict-set-directives": "error",
2133
+ // Disallow using deprecated Astro.canonicalURL
2134
+ // https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-canonicalurl/
2135
+ "astro/no-deprecated-astro-canonicalurl": "error",
2136
+ // Disallow using deprecated Astro.fetchContent()
2137
+ // https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-fetchcontent/
2138
+ "astro/no-deprecated-astro-fetchcontent": "error",
2139
+ // Disallow using deprecated Astro.resolve()
2140
+ // https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-resolve/
2141
+ "astro/no-deprecated-astro-resolve": "error",
2142
+ // Disallow using deprecated getEntryBySlug()
2143
+ // https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-getentrybyslug/
2144
+ "astro/no-deprecated-getentrybyslug": "error",
2145
+ // Disallow unused define:vars={...} in style tag
2146
+ // https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-define-vars-in-style/
2147
+ "astro/no-unused-define-vars-in-style": "error",
2148
+ // Disallow warnings when compiling
2149
+ // https://ota-meshi.github.io/eslint-plugin-astro/rules/valid-compile/
2150
+ "astro/valid-compile": "error",
2139
2151
  "style/jsx-closing-tag-location": "off",
2140
2152
  "style/jsx-indent": "off",
2141
2153
  "style/jsx-one-expression-per-line": "off",
2142
- ...pluginAstro.configs.all.rules,
2143
2154
  "style/multiline-ternary": ["error", "never"],
2144
2155
  ...overrides
2145
2156
  }
2146
2157
  },
2147
2158
  {
2148
- name: "luxass:astro:rules:scripts",
2159
+ name: "luxass:astro:scripts-js",
2149
2160
  files: [
2150
2161
  "**/*.astro/*.js",
2151
2162
  "*.astro/*.js"
2152
2163
  ],
2153
2164
  languageOptions: {
2154
- // @ts-expect-error hmmm
2155
2165
  globals: {
2156
- ...pluginAstro.configs.base.overrides[1].env
2166
+ browser: true,
2167
+ es2020: true
2157
2168
  },
2158
2169
  parserOptions: {
2159
2170
  sourceType: "module"
2160
2171
  }
2161
2172
  }
2173
+ },
2174
+ {
2175
+ name: "luxass:astro:scripts-ts",
2176
+ files: [
2177
+ "**/*.astro/*.ts",
2178
+ "*.astro/*.ts"
2179
+ ],
2180
+ languageOptions: {
2181
+ globals: {
2182
+ browser: true,
2183
+ es2020: true
2184
+ },
2185
+ parser: typescript2 ? await interop(import("@typescript-eslint/parser")) : null,
2186
+ parserOptions: {
2187
+ project: null,
2188
+ sourceType: "module"
2189
+ }
2190
+ }
2162
2191
  }
2163
2192
  ];
2164
2193
  }
@@ -2379,6 +2408,327 @@ async function formatters(options = {}, stylistic2 = {}) {
2379
2408
  }
2380
2409
  return configs;
2381
2410
  }
2411
+
2412
+ // src/configs/toml.ts
2413
+ async function toml(options = {}) {
2414
+ const {
2415
+ files = [GLOB_TOML],
2416
+ overrides = {},
2417
+ stylistic: stylistic2 = true
2418
+ } = options;
2419
+ const {
2420
+ indent = 2
2421
+ } = typeof stylistic2 === "boolean" ? {} : stylistic2;
2422
+ const [
2423
+ pluginToml,
2424
+ parserToml
2425
+ ] = await Promise.all([
2426
+ interop(import("eslint-plugin-toml")),
2427
+ interop(import("toml-eslint-parser"))
2428
+ ]);
2429
+ return [
2430
+ {
2431
+ name: "luxass:toml:setup",
2432
+ plugins: {
2433
+ toml: pluginToml
2434
+ }
2435
+ },
2436
+ {
2437
+ name: "luxass:toml:rules",
2438
+ files,
2439
+ languageOptions: {
2440
+ parser: parserToml
2441
+ },
2442
+ rules: {
2443
+ "style/spaced-comment": "off",
2444
+ "toml/comma-style": "error",
2445
+ "toml/keys-order": "error",
2446
+ "toml/no-space-dots": "error",
2447
+ "toml/no-unreadable-number-separator": "error",
2448
+ "toml/precision-of-fractional-seconds": "error",
2449
+ "toml/precision-of-integer": "error",
2450
+ "toml/tables-order": "error",
2451
+ "toml/vue-custom-block/no-parsing-error": "error",
2452
+ ...stylistic2 ? {
2453
+ "toml/array-bracket-newline": "error",
2454
+ "toml/array-bracket-spacing": "error",
2455
+ "toml/array-element-newline": "error",
2456
+ "toml/indent": ["error", indent === "tab" ? 2 : indent],
2457
+ "toml/inline-table-curly-spacing": "error",
2458
+ "toml/key-spacing": "error",
2459
+ "toml/padding-line-between-pairs": "error",
2460
+ "toml/padding-line-between-tables": "error",
2461
+ "toml/quoted-keys": "error",
2462
+ "toml/spaced-comment": "error",
2463
+ "toml/table-bracket-spacing": "error"
2464
+ } : {},
2465
+ ...overrides
2466
+ }
2467
+ }
2468
+ ];
2469
+ }
2470
+
2471
+ // src/configs/solid.ts
2472
+ async function solid(options = {}) {
2473
+ const {
2474
+ a11y = false,
2475
+ files = [GLOB_JSX, GLOB_TSX],
2476
+ overrides = {},
2477
+ typescript: typescript2 = true
2478
+ } = options;
2479
+ await ensure([
2480
+ "eslint-plugin-solid"
2481
+ ]);
2482
+ const [
2483
+ pluginSolid
2484
+ ] = await Promise.all([
2485
+ interop(import("eslint-plugin-solid"))
2486
+ ]);
2487
+ return [
2488
+ {
2489
+ name: "luxass:solid:setup",
2490
+ plugins: {
2491
+ solid: pluginSolid
2492
+ }
2493
+ },
2494
+ {
2495
+ name: "luxass:solid:rules",
2496
+ files,
2497
+ languageOptions: {
2498
+ parserOptions: {
2499
+ ecmaFeatures: {
2500
+ jsx: true
2501
+ }
2502
+ },
2503
+ sourceType: "module"
2504
+ },
2505
+ rules: {
2506
+ ...a11y ? {
2507
+ // recommended rules for jsx-a11y
2508
+ "jsx-a11y/alt-text": "error",
2509
+ "jsx-a11y/anchor-ambiguous-text": "off",
2510
+ "jsx-a11y/anchor-has-content": "error",
2511
+ "jsx-a11y/anchor-is-valid": "error",
2512
+ "jsx-a11y/aria-activedescendant-has-tabindex": "error",
2513
+ "jsx-a11y/aria-props": "error",
2514
+ "jsx-a11y/aria-proptypes": "error",
2515
+ "jsx-a11y/aria-role": "error",
2516
+ "jsx-a11y/aria-unsupported-elements": "error",
2517
+ "jsx-a11y/autocomplete-valid": "error",
2518
+ "jsx-a11y/click-events-have-key-events": "error",
2519
+ "jsx-a11y/control-has-associated-label": [
2520
+ "off",
2521
+ {
2522
+ ignoreElements: [
2523
+ "audio",
2524
+ "canvas",
2525
+ "embed",
2526
+ "input",
2527
+ "textarea",
2528
+ "tr",
2529
+ "video"
2530
+ ],
2531
+ ignoreRoles: [
2532
+ "grid",
2533
+ "listbox",
2534
+ "menu",
2535
+ "menubar",
2536
+ "radiogroup",
2537
+ "row",
2538
+ "tablist",
2539
+ "toolbar",
2540
+ "tree",
2541
+ "treegrid"
2542
+ ],
2543
+ includeRoles: [
2544
+ "alert",
2545
+ "dialog"
2546
+ ]
2547
+ }
2548
+ ],
2549
+ "jsx-a11y/heading-has-content": "error",
2550
+ "jsx-a11y/html-has-lang": "error",
2551
+ "jsx-a11y/iframe-has-title": "error",
2552
+ "jsx-a11y/img-redundant-alt": "error",
2553
+ "jsx-a11y/interactive-supports-focus": [
2554
+ "error",
2555
+ {
2556
+ tabbable: [
2557
+ "button",
2558
+ "checkbox",
2559
+ "link",
2560
+ "searchbox",
2561
+ "spinbutton",
2562
+ "switch",
2563
+ "textbox"
2564
+ ]
2565
+ }
2566
+ ],
2567
+ "jsx-a11y/label-has-associated-control": "error",
2568
+ "jsx-a11y/label-has-for": "off",
2569
+ "jsx-a11y/media-has-caption": "error",
2570
+ "jsx-a11y/mouse-events-have-key-events": "error",
2571
+ "jsx-a11y/no-access-key": "error",
2572
+ "jsx-a11y/no-autofocus": "error",
2573
+ "jsx-a11y/no-distracting-elements": "error",
2574
+ "jsx-a11y/no-interactive-element-to-noninteractive-role": [
2575
+ "error",
2576
+ {
2577
+ canvas: [
2578
+ "img"
2579
+ ],
2580
+ tr: [
2581
+ "none",
2582
+ "presentation"
2583
+ ]
2584
+ }
2585
+ ],
2586
+ "jsx-a11y/no-noninteractive-element-interactions": [
2587
+ "error",
2588
+ {
2589
+ alert: [
2590
+ "onKeyUp",
2591
+ "onKeyDown",
2592
+ "onKeyPress"
2593
+ ],
2594
+ body: [
2595
+ "onError",
2596
+ "onLoad"
2597
+ ],
2598
+ dialog: [
2599
+ "onKeyUp",
2600
+ "onKeyDown",
2601
+ "onKeyPress"
2602
+ ],
2603
+ handlers: [
2604
+ "onClick",
2605
+ "onError",
2606
+ "onLoad",
2607
+ "onMouseDown",
2608
+ "onMouseUp",
2609
+ "onKeyPress",
2610
+ "onKeyDown",
2611
+ "onKeyUp"
2612
+ ],
2613
+ iframe: [
2614
+ "onError",
2615
+ "onLoad"
2616
+ ],
2617
+ img: [
2618
+ "onError",
2619
+ "onLoad"
2620
+ ]
2621
+ }
2622
+ ],
2623
+ "jsx-a11y/no-noninteractive-element-to-interactive-role": [
2624
+ "error",
2625
+ {
2626
+ fieldset: [
2627
+ "radiogroup",
2628
+ "presentation"
2629
+ ],
2630
+ li: [
2631
+ "menuitem",
2632
+ "option",
2633
+ "row",
2634
+ "tab",
2635
+ "treeitem"
2636
+ ],
2637
+ ol: [
2638
+ "listbox",
2639
+ "menu",
2640
+ "menubar",
2641
+ "radiogroup",
2642
+ "tablist",
2643
+ "tree",
2644
+ "treegrid"
2645
+ ],
2646
+ table: [
2647
+ "grid"
2648
+ ],
2649
+ td: [
2650
+ "gridcell"
2651
+ ],
2652
+ ul: [
2653
+ "listbox",
2654
+ "menu",
2655
+ "menubar",
2656
+ "radiogroup",
2657
+ "tablist",
2658
+ "tree",
2659
+ "treegrid"
2660
+ ]
2661
+ }
2662
+ ],
2663
+ "jsx-a11y/no-noninteractive-tabindex": [
2664
+ "error",
2665
+ {
2666
+ allowExpressionValues: true,
2667
+ roles: [
2668
+ "tabpanel"
2669
+ ],
2670
+ tags: []
2671
+ }
2672
+ ],
2673
+ "jsx-a11y/no-redundant-roles": "error",
2674
+ "jsx-a11y/no-static-element-interactions": [
2675
+ "error",
2676
+ {
2677
+ allowExpressionValues: true,
2678
+ handlers: [
2679
+ "onClick",
2680
+ "onMouseDown",
2681
+ "onMouseUp",
2682
+ "onKeyPress",
2683
+ "onKeyDown",
2684
+ "onKeyUp"
2685
+ ]
2686
+ }
2687
+ ],
2688
+ "jsx-a11y/role-has-required-aria-props": "error",
2689
+ "jsx-a11y/role-supports-aria-props": "error",
2690
+ "jsx-a11y/scope": "error",
2691
+ "jsx-a11y/tabindex-no-positive": "error"
2692
+ } : {},
2693
+ // solid recommended rules
2694
+ // reactivity
2695
+ "solid/components-return-once": 1,
2696
+ "solid/event-handlers": 1,
2697
+ // these rules are mostly style suggestions
2698
+ "solid/imports": 1,
2699
+ // identifier usage is important
2700
+ "solid/jsx-no-duplicate-props": 2,
2701
+ "solid/jsx-no-script-url": 2,
2702
+ "solid/jsx-no-undef": 2,
2703
+ "solid/jsx-uses-vars": 2,
2704
+ "solid/no-array-handlers": 0,
2705
+ "solid/no-destructure": 2,
2706
+ // security problems
2707
+ "solid/no-innerhtml": 2,
2708
+ // only necessary for resource-constrained environments
2709
+ "solid/no-proxy-apis": 0,
2710
+ "solid/no-react-deps": 1,
2711
+ "solid/no-react-specific-props": 1,
2712
+ "solid/no-unknown-namespaces": 2,
2713
+ // deprecated
2714
+ "solid/prefer-classlist": 0,
2715
+ "solid/prefer-for": 2,
2716
+ // handled by Solid compiler, opt-in style suggestion
2717
+ "solid/prefer-show": 0,
2718
+ "solid/reactivity": 1,
2719
+ "solid/self-closing-comp": 1,
2720
+ "solid/style-prop": 1,
2721
+ ...typescript2 ? {
2722
+ "solid/jsx-no-undef": [2, { typescriptEnabled: true }],
2723
+ // namespaces taken care of by TS
2724
+ "solid/no-unknown-namespaces": 0
2725
+ } : {},
2726
+ // overrides
2727
+ ...overrides
2728
+ }
2729
+ }
2730
+ ];
2731
+ }
2382
2732
  // Annotate the CommonJS export names for ESM import in node:
2383
2733
  0 && (module.exports = {
2384
2734
  astro,
@@ -2394,11 +2744,13 @@ async function formatters(options = {}, stylistic2 = {}) {
2394
2744
  node,
2395
2745
  perfectionist,
2396
2746
  react,
2747
+ solid,
2397
2748
  sortPackageJson,
2398
2749
  sortTsconfig,
2399
2750
  stylistic,
2400
2751
  tailwindcss,
2401
2752
  test,
2753
+ toml,
2402
2754
  typescript,
2403
2755
  unicorn,
2404
2756
  unocss,
@@ -5,7 +5,7 @@ export { node } from './node.cjs';
5
5
  export { sortPackageJson, sortTsconfig } from './sort.cjs';
6
6
  export { perfectionist } from './perfectionist.cjs';
7
7
  export { ImportsOptions, imports } from './imports.cjs';
8
- export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from '../types-A-NO9UF1.cjs';
8
+ export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, o as SolidOptions, S as StylisticConfig, c as StylisticOptions, l as TOMLOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, m as solid, s as stylistic, g as tailwindcss, d as test, k as toml, t as typescript, u as unocss, v as vue, y as yaml } from '../types-HqEzZfQU.cjs';
9
9
  export { JSDOCOptions, jsdoc } from './jsdoc.cjs';
10
10
  export { MarkdownOptions, markdown } from './markdown.cjs';
11
11
  import 'eslint-config-flat-gitignore';
@@ -5,7 +5,7 @@ export { node } from './node.js';
5
5
  export { sortPackageJson, sortTsconfig } from './sort.js';
6
6
  export { perfectionist } from './perfectionist.js';
7
7
  export { ImportsOptions, imports } from './imports.js';
8
- export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, S as StylisticConfig, c as StylisticOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, s as stylistic, g as tailwindcss, d as test, t as typescript, u as unocss, v as vue, y as yaml } from '../types-A-NO9UF1.js';
8
+ export { A as AstroOptions, F as FormattersOptions, b as JSONOptions, J as JavaScriptOptions, N as NextJSOptions, R as ReactOptions, o as SolidOptions, S as StylisticConfig, c as StylisticOptions, l as TOMLOptions, h as TailwindCSSOptions, e as TestOptions, T as TypeScriptOptions, U as UnoCSSOptions, V as VueOptions, Y as YAMLOptions, f as astro, i as formatters, j as javascript, a as jsonc, n as nextjs, r as react, m as solid, s as stylistic, g as tailwindcss, d as test, k as toml, t as typescript, u as unocss, v as vue, y as yaml } from '../types-HqEzZfQU.js';
9
9
  export { JSDOCOptions, jsdoc } from './jsdoc.js';
10
10
  export { MarkdownOptions, markdown } from './markdown.js';
11
11
  import 'eslint-config-flat-gitignore';
@@ -1,45 +1,51 @@
1
- import "../chunk-ME2OAMS3.mjs";
1
+ import "../chunk-YGZJUKJC.mjs";
2
2
  import {
3
3
  unocss
4
- } from "../chunk-KJ7ZCBK4.mjs";
4
+ } from "../chunk-AQRBQAKE.mjs";
5
5
  import {
6
6
  vue
7
- } from "../chunk-JUFHDXTH.mjs";
7
+ } from "../chunk-MT5P5EKH.mjs";
8
8
  import {
9
9
  yaml
10
- } from "../chunk-WOYZWHPM.mjs";
10
+ } from "../chunk-V57HXOSW.mjs";
11
+ import {
12
+ solid
13
+ } from "../chunk-SPD4DGYN.mjs";
11
14
  import {
12
15
  sortPackageJson,
13
16
  sortTsconfig
14
17
  } from "../chunk-XBASVDU6.mjs";
15
18
  import {
16
19
  tailwindcss
17
- } from "../chunk-Q57BF3CR.mjs";
20
+ } from "../chunk-WOBGA3K2.mjs";
18
21
  import {
19
22
  test
20
- } from "../chunk-WRURTO5T.mjs";
23
+ } from "../chunk-7ODEIBF5.mjs";
21
24
  import "../chunk-WDSV2EFG.mjs";
25
+ import {
26
+ toml
27
+ } from "../chunk-EHWA727G.mjs";
22
28
  import {
23
29
  typescript
24
- } from "../chunk-IASQD7KX.mjs";
30
+ } from "../chunk-YO3IYQ2L.mjs";
25
31
  import {
26
32
  unicorn
27
33
  } from "../chunk-RVSUTDCE.mjs";
28
34
  import {
29
35
  javascript
30
- } from "../chunk-K6TLNQJF.mjs";
36
+ } from "../chunk-DCOLHWHC.mjs";
31
37
  import {
32
38
  jsdoc
33
39
  } from "../chunk-DVQQVCGF.mjs";
34
40
  import {
35
41
  jsonc
36
- } from "../chunk-BXBN56WI.mjs";
42
+ } from "../chunk-QDSV5ONX.mjs";
37
43
  import {
38
44
  markdown
39
- } from "../chunk-FU5SRKZU.mjs";
45
+ } from "../chunk-FNOIGW47.mjs";
40
46
  import {
41
47
  nextjs
42
- } from "../chunk-PYS26PF3.mjs";
48
+ } from "../chunk-MMSZW2UW.mjs";
43
49
  import {
44
50
  node
45
51
  } from "../chunk-5NK24IKQ.mjs";
@@ -48,27 +54,27 @@ import {
48
54
  } from "../chunk-6T7MXPCT.mjs";
49
55
  import {
50
56
  react
51
- } from "../chunk-RNFKNSHW.mjs";
57
+ } from "../chunk-UITQW3RA.mjs";
52
58
  import {
53
59
  astro
54
- } from "../chunk-GBLPCM3X.mjs";
60
+ } from "../chunk-O2BXTQHK.mjs";
55
61
  import {
56
62
  comments
57
63
  } from "../chunk-DAJA5AV3.mjs";
58
64
  import {
59
65
  formatters
60
- } from "../chunk-5TJETBJG.mjs";
66
+ } from "../chunk-XPKGXA67.mjs";
61
67
  import {
62
68
  stylistic
63
69
  } from "../chunk-QMGT2Z63.mjs";
64
70
  import "../chunk-4YBQZLPS.mjs";
65
71
  import {
66
72
  ignores
67
- } from "../chunk-ANUYBAYV.mjs";
73
+ } from "../chunk-WSQOWO67.mjs";
68
74
  import {
69
75
  imports
70
- } from "../chunk-5SDSWPKR.mjs";
71
- import "../chunk-ATRL3UZP.mjs";
76
+ } from "../chunk-4YT54JFZ.mjs";
77
+ import "../chunk-KOXCJL3C.mjs";
72
78
  export {
73
79
  astro,
74
80
  comments,
@@ -83,11 +89,13 @@ export {
83
89
  node,
84
90
  perfectionist,
85
91
  react,
92
+ solid,
86
93
  sortPackageJson,
87
94
  sortTsconfig,
88
95
  stylistic,
89
96
  tailwindcss,
90
97
  test,
98
+ toml,
91
99
  typescript,
92
100
  unicorn,
93
101
  unocss,
@@ -149,7 +149,6 @@ async function javascript(options = {}) {
149
149
  "no-multi-str": "error",
150
150
  "no-new": "error",
151
151
  "no-new-func": "error",
152
- "no-new-object": "error",
153
152
  "no-new-symbol": "error",
154
153
  "no-new-wrappers": "error",
155
154
  "no-obj-calls": "error",
@@ -1,4 +1,4 @@
1
- export { J as JavaScriptOptions, j as javascript } from '../types-A-NO9UF1.cjs';
1
+ export { J as JavaScriptOptions, j as javascript } from '../types-HqEzZfQU.cjs';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@antfu/eslint-define-config';
4
4
  import '@eslint-types/jsdoc/types';
@@ -1,4 +1,4 @@
1
- export { J as JavaScriptOptions, j as javascript } from '../types-A-NO9UF1.js';
1
+ export { J as JavaScriptOptions, j as javascript } from '../types-HqEzZfQU.js';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@antfu/eslint-define-config';
4
4
  import '@eslint-types/jsdoc/types';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  javascript
3
- } from "../chunk-K6TLNQJF.mjs";
4
- import "../chunk-ATRL3UZP.mjs";
3
+ } from "../chunk-DCOLHWHC.mjs";
4
+ import "../chunk-KOXCJL3C.mjs";
5
5
  export {
6
6
  javascript
7
7
  };
@@ -1,4 +1,4 @@
1
- import { S as StylisticConfig, k as FlatConfigItem } from '../types-A-NO9UF1.cjs';
1
+ import { S as StylisticConfig, p as FlatConfigItem } from '../types-HqEzZfQU.cjs';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@antfu/eslint-define-config';
4
4
  import '@eslint-types/jsdoc/types';
@@ -1,4 +1,4 @@
1
- import { S as StylisticConfig, k as FlatConfigItem } from '../types-A-NO9UF1.js';
1
+ import { S as StylisticConfig, p as FlatConfigItem } from '../types-HqEzZfQU.js';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@antfu/eslint-define-config';
4
4
  import '@eslint-types/jsdoc/types';
@@ -1,4 +1,4 @@
1
- export { b as JSONOptions, a as jsonc } from '../types-A-NO9UF1.cjs';
1
+ export { b as JSONOptions, a as jsonc } from '../types-HqEzZfQU.cjs';
2
2
  import 'eslint-config-flat-gitignore';
3
3
  import '@antfu/eslint-define-config';
4
4
  import '@eslint-types/jsdoc/types';