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