@luxass/eslint-config 4.3.1 → 4.3.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/dist/index.cjs +68 -68
- package/dist/index.d.cts +6605 -3630
- package/dist/index.d.ts +6605 -3630
- package/dist/index.js +69 -69
- package/package.json +10 -7
package/dist/index.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import process3 from "node:process";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import { isPackageExists as isPackageExists4 } from "local-pkg";
|
|
5
|
-
import {
|
|
5
|
+
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
6
6
|
|
|
7
7
|
// src/configs/comments.ts
|
|
8
8
|
import eslintCommentsPlugin from "@eslint-community/eslint-plugin-eslint-comments";
|
|
9
9
|
async function comments() {
|
|
10
10
|
return [
|
|
11
11
|
{
|
|
12
|
-
name: "luxass
|
|
12
|
+
name: "luxass/eslint-comments",
|
|
13
13
|
plugins: {
|
|
14
14
|
"eslint-comments": eslintCommentsPlugin
|
|
15
15
|
},
|
|
@@ -33,7 +33,7 @@ import pluginUnicorn from "eslint-plugin-unicorn";
|
|
|
33
33
|
function unicorn() {
|
|
34
34
|
return [
|
|
35
35
|
{
|
|
36
|
-
name: "luxass
|
|
36
|
+
name: "luxass/unicorn",
|
|
37
37
|
plugins: {
|
|
38
38
|
unicorn: pluginUnicorn
|
|
39
39
|
},
|
|
@@ -178,7 +178,7 @@ import pluginNode from "eslint-plugin-n";
|
|
|
178
178
|
function node() {
|
|
179
179
|
return [
|
|
180
180
|
{
|
|
181
|
-
name: "luxass
|
|
181
|
+
name: "luxass/node",
|
|
182
182
|
plugins: {
|
|
183
183
|
node: pluginNode
|
|
184
184
|
},
|
|
@@ -200,7 +200,7 @@ function node() {
|
|
|
200
200
|
function sortPackageJson() {
|
|
201
201
|
return [
|
|
202
202
|
{
|
|
203
|
-
name: "luxass
|
|
203
|
+
name: "luxass/sort/package-json",
|
|
204
204
|
files: ["**/package.json"],
|
|
205
205
|
rules: {
|
|
206
206
|
"jsonc/sort-array-values": [
|
|
@@ -300,7 +300,7 @@ function sortPackageJson() {
|
|
|
300
300
|
function sortTsconfig() {
|
|
301
301
|
return [
|
|
302
302
|
{
|
|
303
|
-
name: "luxass
|
|
303
|
+
name: "luxass/sort/tsconfig",
|
|
304
304
|
files: ["**/tsconfig.json", "**/tsconfig.*.json"],
|
|
305
305
|
rules: {
|
|
306
306
|
"jsonc/sort-keys": [
|
|
@@ -432,7 +432,7 @@ async function imports(options = {}) {
|
|
|
432
432
|
} = options;
|
|
433
433
|
return [
|
|
434
434
|
{
|
|
435
|
-
name: "luxass
|
|
435
|
+
name: "luxass/imports",
|
|
436
436
|
plugins: {
|
|
437
437
|
antfu: pluginAntfu,
|
|
438
438
|
import: pluginImport
|
|
@@ -454,7 +454,7 @@ async function imports(options = {}) {
|
|
|
454
454
|
}
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
|
-
name: "luxass
|
|
457
|
+
name: "luxass/disables/imports-bin",
|
|
458
458
|
files: ["**/bin/**/*", `**/bin.${GLOB_SRC_EXT}`],
|
|
459
459
|
rules: {
|
|
460
460
|
"antfu/no-import-dist": "off",
|
|
@@ -472,7 +472,7 @@ async function javascript(options = {}) {
|
|
|
472
472
|
const { editor = false, overrides = {} } = options;
|
|
473
473
|
return [
|
|
474
474
|
{
|
|
475
|
-
name: "luxass
|
|
475
|
+
name: "luxass/javascript",
|
|
476
476
|
languageOptions: {
|
|
477
477
|
ecmaVersion: 2022,
|
|
478
478
|
globals: {
|
|
@@ -555,7 +555,7 @@ async function javascript(options = {}) {
|
|
|
555
555
|
"no-multi-str": "error",
|
|
556
556
|
"no-new": "error",
|
|
557
557
|
"no-new-func": "error",
|
|
558
|
-
"no-new-
|
|
558
|
+
"no-new-native-nonconstructor": "error",
|
|
559
559
|
"no-new-wrappers": "error",
|
|
560
560
|
"no-obj-calls": "error",
|
|
561
561
|
"no-octal": "error",
|
|
@@ -709,15 +709,12 @@ async function javascript(options = {}) {
|
|
|
709
709
|
}
|
|
710
710
|
},
|
|
711
711
|
{
|
|
712
|
-
name: "luxass
|
|
713
|
-
files: [
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
{
|
|
719
|
-
name: "luxass:playground-overrides",
|
|
720
|
-
files: [`**/playground.${GLOB_SRC_EXT}`],
|
|
712
|
+
name: "luxass/disables/cli",
|
|
713
|
+
files: [
|
|
714
|
+
`scripts/${GLOB_SRC}`,
|
|
715
|
+
`cli.${GLOB_SRC_EXT}`,
|
|
716
|
+
`**/playground.${GLOB_SRC_EXT}`
|
|
717
|
+
],
|
|
721
718
|
rules: {
|
|
722
719
|
"no-console": "off"
|
|
723
720
|
}
|
|
@@ -804,7 +801,7 @@ async function jsdoc(options = {}) {
|
|
|
804
801
|
} = options;
|
|
805
802
|
return [
|
|
806
803
|
{
|
|
807
|
-
name: "luxass
|
|
804
|
+
name: "luxass/jsdoc",
|
|
808
805
|
plugins: {
|
|
809
806
|
jsdoc: await interop(import("eslint-plugin-jsdoc"))
|
|
810
807
|
},
|
|
@@ -850,13 +847,13 @@ async function jsonc(options = {}) {
|
|
|
850
847
|
]);
|
|
851
848
|
return [
|
|
852
849
|
{
|
|
853
|
-
name: "luxass
|
|
850
|
+
name: "luxass/jsonc/setup",
|
|
854
851
|
plugins: {
|
|
855
852
|
jsonc: pluginJsonc
|
|
856
853
|
}
|
|
857
854
|
},
|
|
858
855
|
{
|
|
859
|
-
name: "luxass
|
|
856
|
+
name: "luxass/jsonc/rules",
|
|
860
857
|
files,
|
|
861
858
|
languageOptions: {
|
|
862
859
|
parser: parserJsonc
|
|
@@ -926,13 +923,13 @@ async function markdown(options = {}) {
|
|
|
926
923
|
const markdown2 = await interop(import("eslint-plugin-markdown"));
|
|
927
924
|
return [
|
|
928
925
|
{
|
|
929
|
-
name: "luxass
|
|
926
|
+
name: "luxass/markdown/setup",
|
|
930
927
|
plugins: {
|
|
931
928
|
markdown: markdown2
|
|
932
929
|
}
|
|
933
930
|
},
|
|
934
931
|
{
|
|
935
|
-
name: "luxass
|
|
932
|
+
name: "luxass/markdown:processor",
|
|
936
933
|
files,
|
|
937
934
|
ignores: [GLOB_MARKDOWN_IN_MARKDOWN],
|
|
938
935
|
// `eslint-plugin-markdown` only creates virtual files for code blocks,
|
|
@@ -944,14 +941,14 @@ async function markdown(options = {}) {
|
|
|
944
941
|
])
|
|
945
942
|
},
|
|
946
943
|
{
|
|
947
|
-
name: "luxass
|
|
944
|
+
name: "luxass/markdown/parser",
|
|
948
945
|
files,
|
|
949
946
|
languageOptions: {
|
|
950
947
|
parser: parserPlain
|
|
951
948
|
}
|
|
952
949
|
},
|
|
953
950
|
{
|
|
954
|
-
name: "luxass
|
|
951
|
+
name: "luxass/markdown/disables",
|
|
955
952
|
files: [
|
|
956
953
|
GLOB_MARKDOWN_CODE,
|
|
957
954
|
...exts.map((ext) => `${GLOB_MARKDOWN}/**/*.${ext}`)
|
|
@@ -1036,7 +1033,7 @@ async function stylistic(options = {}) {
|
|
|
1036
1033
|
});
|
|
1037
1034
|
return [
|
|
1038
1035
|
{
|
|
1039
|
-
name: "luxass
|
|
1036
|
+
name: "luxass/stylistic",
|
|
1040
1037
|
plugins: {
|
|
1041
1038
|
antfu: pluginAntfu3,
|
|
1042
1039
|
style: pluginStylistic
|
|
@@ -1103,7 +1100,7 @@ async function typescript(options = {}) {
|
|
|
1103
1100
|
return {
|
|
1104
1101
|
files: files2,
|
|
1105
1102
|
...ignores2 ? { ignores: ignores2 } : {},
|
|
1106
|
-
name: `luxass
|
|
1103
|
+
name: `luxass/typescript/${typeAware ? "type-aware-parser" : "parser"}`,
|
|
1107
1104
|
languageOptions: {
|
|
1108
1105
|
parser: parserTs,
|
|
1109
1106
|
parserOptions: {
|
|
@@ -1121,7 +1118,7 @@ async function typescript(options = {}) {
|
|
|
1121
1118
|
return [
|
|
1122
1119
|
{
|
|
1123
1120
|
// Install the plugins without globs, so they can be configured separately.
|
|
1124
|
-
name: "luxass
|
|
1121
|
+
name: "luxass/typescript/setup",
|
|
1125
1122
|
plugins: {
|
|
1126
1123
|
antfu: pluginAntfu4,
|
|
1127
1124
|
ts: pluginTs
|
|
@@ -1132,7 +1129,7 @@ async function typescript(options = {}) {
|
|
|
1132
1129
|
makeParser(false, files, filesTypeAware)
|
|
1133
1130
|
] : [makeParser(false, files)],
|
|
1134
1131
|
{
|
|
1135
|
-
name: "luxass
|
|
1132
|
+
name: "luxass/typescript/rules",
|
|
1136
1133
|
files,
|
|
1137
1134
|
rules: {
|
|
1138
1135
|
...renameRules(
|
|
@@ -1220,7 +1217,7 @@ async function typescript(options = {}) {
|
|
|
1220
1217
|
}
|
|
1221
1218
|
},
|
|
1222
1219
|
{
|
|
1223
|
-
name: "luxass
|
|
1220
|
+
name: "luxass/typescript/rules-type-aware",
|
|
1224
1221
|
files: filesTypeAware,
|
|
1225
1222
|
rules: {
|
|
1226
1223
|
...tsconfigPath ? typeAwareRules : {},
|
|
@@ -1228,7 +1225,7 @@ async function typescript(options = {}) {
|
|
|
1228
1225
|
}
|
|
1229
1226
|
},
|
|
1230
1227
|
{
|
|
1231
|
-
name: "luxass
|
|
1228
|
+
name: "luxass/typescript/disables/dts",
|
|
1232
1229
|
files: ["**/*.d.ts"],
|
|
1233
1230
|
rules: {
|
|
1234
1231
|
"eslint-comments/no-unlimited-disable": "off",
|
|
@@ -1238,21 +1235,21 @@ async function typescript(options = {}) {
|
|
|
1238
1235
|
}
|
|
1239
1236
|
},
|
|
1240
1237
|
{
|
|
1241
|
-
name: "luxass
|
|
1238
|
+
name: "luxass/typescript/disables/tests",
|
|
1242
1239
|
files: ["**/*.{test,spec}.ts?(x)"],
|
|
1243
1240
|
rules: {
|
|
1244
1241
|
"no-unused-expressions": "off"
|
|
1245
1242
|
}
|
|
1246
1243
|
},
|
|
1247
1244
|
{
|
|
1248
|
-
name: "luxass
|
|
1245
|
+
name: "luxass/typescript/disables/playground",
|
|
1249
1246
|
files: [`**/playground.${GLOB_SRC_EXT}`],
|
|
1250
1247
|
rules: {
|
|
1251
1248
|
"no-console": "off"
|
|
1252
1249
|
}
|
|
1253
1250
|
},
|
|
1254
1251
|
{
|
|
1255
|
-
name: "luxass
|
|
1252
|
+
name: "luxass/typescript/disables/javascript",
|
|
1256
1253
|
files: ["**/*.js", "**/*.cjs"],
|
|
1257
1254
|
rules: {
|
|
1258
1255
|
"ts/no-require-imports": "off",
|
|
@@ -1285,7 +1282,7 @@ async function vue(options = {}) {
|
|
|
1285
1282
|
} = typeof stylistic2 === "boolean" ? {} : stylistic2;
|
|
1286
1283
|
return [
|
|
1287
1284
|
{
|
|
1288
|
-
name: "luxass
|
|
1285
|
+
name: "luxass/vue/setup",
|
|
1289
1286
|
// This allows Vue plugin to work with auto imports
|
|
1290
1287
|
// https://github.com/vuejs/eslint-plugin-vue/pull/2422
|
|
1291
1288
|
languageOptions: {
|
|
@@ -1311,7 +1308,7 @@ async function vue(options = {}) {
|
|
|
1311
1308
|
}
|
|
1312
1309
|
},
|
|
1313
1310
|
{
|
|
1314
|
-
name: "luxass
|
|
1311
|
+
name: "luxass/vue/rules",
|
|
1315
1312
|
files,
|
|
1316
1313
|
languageOptions: {
|
|
1317
1314
|
parser: parserVue,
|
|
@@ -1469,13 +1466,13 @@ async function yaml(options = {}) {
|
|
|
1469
1466
|
} = typeof stylistic2 === "boolean" ? {} : stylistic2;
|
|
1470
1467
|
return [
|
|
1471
1468
|
{
|
|
1472
|
-
name: "luxass
|
|
1469
|
+
name: "luxass/yaml/setup",
|
|
1473
1470
|
plugins: {
|
|
1474
1471
|
yaml: pluginYaml
|
|
1475
1472
|
}
|
|
1476
1473
|
},
|
|
1477
1474
|
{
|
|
1478
|
-
name: "luxass
|
|
1475
|
+
name: "luxass/yaml/rules",
|
|
1479
1476
|
files,
|
|
1480
1477
|
languageOptions: {
|
|
1481
1478
|
parser: parserYaml
|
|
@@ -1510,7 +1507,7 @@ async function yaml(options = {}) {
|
|
|
1510
1507
|
}
|
|
1511
1508
|
},
|
|
1512
1509
|
{
|
|
1513
|
-
name: "luxass
|
|
1510
|
+
name: "luxass/yaml/github-actions",
|
|
1514
1511
|
files: ["**/.github/workflows/*.{yml,yaml}"],
|
|
1515
1512
|
rules: {
|
|
1516
1513
|
// GitHub Actions supports empty values to enable features
|
|
@@ -1534,7 +1531,7 @@ async function test(options = {}) {
|
|
|
1534
1531
|
]);
|
|
1535
1532
|
return [
|
|
1536
1533
|
{
|
|
1537
|
-
name: "luxass
|
|
1534
|
+
name: "luxass/test/setup",
|
|
1538
1535
|
plugins: {
|
|
1539
1536
|
test: {
|
|
1540
1537
|
...pluginVitest,
|
|
@@ -1545,7 +1542,7 @@ async function test(options = {}) {
|
|
|
1545
1542
|
}
|
|
1546
1543
|
},
|
|
1547
1544
|
{
|
|
1548
|
-
name: "luxass
|
|
1545
|
+
name: "luxass/test/rules",
|
|
1549
1546
|
files,
|
|
1550
1547
|
rules: {
|
|
1551
1548
|
"test/consistent-test-it": [
|
|
@@ -1580,11 +1577,14 @@ async function unocss(options = {}) {
|
|
|
1580
1577
|
]);
|
|
1581
1578
|
return [
|
|
1582
1579
|
{
|
|
1583
|
-
name: "luxass
|
|
1580
|
+
name: "luxass/unocss/setup",
|
|
1584
1581
|
files,
|
|
1585
1582
|
plugins: {
|
|
1586
1583
|
unocss: pluginUnoCSS
|
|
1587
|
-
}
|
|
1584
|
+
}
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
name: "luxass/unocss/rules",
|
|
1588
1588
|
rules: {
|
|
1589
1589
|
"unocss/order": "warn",
|
|
1590
1590
|
...attributify ? {
|
|
@@ -1612,13 +1612,13 @@ async function nextjs(options = {}) {
|
|
|
1612
1612
|
const pluginNextjs = await interop(import("@next/eslint-plugin-next"));
|
|
1613
1613
|
return [
|
|
1614
1614
|
{
|
|
1615
|
-
name: "luxass
|
|
1615
|
+
name: "luxass/nextjs/setup",
|
|
1616
1616
|
plugins: {
|
|
1617
1617
|
"@next/next": pluginNextjs
|
|
1618
1618
|
}
|
|
1619
1619
|
},
|
|
1620
1620
|
{
|
|
1621
|
-
name: "luxass
|
|
1621
|
+
name: "luxass/nextjs/rules",
|
|
1622
1622
|
files,
|
|
1623
1623
|
rules: {
|
|
1624
1624
|
...pluginNextjs.configs.recommended.rules,
|
|
@@ -1658,7 +1658,7 @@ async function nextjs(options = {}) {
|
|
|
1658
1658
|
}
|
|
1659
1659
|
},
|
|
1660
1660
|
{
|
|
1661
|
-
name: "luxass
|
|
1661
|
+
name: "luxass/nextjs/default-export-override",
|
|
1662
1662
|
files: GLOB_NEXTJS_ROUTES,
|
|
1663
1663
|
rules: {
|
|
1664
1664
|
"import/prefer-default-export": "error",
|
|
@@ -1666,7 +1666,7 @@ async function nextjs(options = {}) {
|
|
|
1666
1666
|
}
|
|
1667
1667
|
},
|
|
1668
1668
|
{
|
|
1669
|
-
name: "luxass
|
|
1669
|
+
name: "luxass/nextjs/og-override",
|
|
1670
1670
|
files: GLOB_NEXTJS_OG,
|
|
1671
1671
|
rules: {
|
|
1672
1672
|
"@next/next/no-img-element": "off",
|
|
@@ -1711,7 +1711,7 @@ async function react(options = {}) {
|
|
|
1711
1711
|
const isAllowConstantExport = isPackageExists2("vite");
|
|
1712
1712
|
return [
|
|
1713
1713
|
{
|
|
1714
|
-
name: "luxass
|
|
1714
|
+
name: "luxass/react/setup",
|
|
1715
1715
|
plugins: {
|
|
1716
1716
|
"react": pluginReact,
|
|
1717
1717
|
"react-hooks": pluginReactHooks,
|
|
@@ -1720,7 +1720,7 @@ async function react(options = {}) {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
},
|
|
1722
1722
|
{
|
|
1723
|
-
name: "luxass
|
|
1723
|
+
name: "luxass/react/rules",
|
|
1724
1724
|
files,
|
|
1725
1725
|
languageOptions: {
|
|
1726
1726
|
parserOptions: {
|
|
@@ -1984,13 +1984,13 @@ async function astro(options = {}) {
|
|
|
1984
1984
|
]);
|
|
1985
1985
|
return [
|
|
1986
1986
|
{
|
|
1987
|
-
name: "luxass
|
|
1987
|
+
name: "luxass/astro/setup",
|
|
1988
1988
|
plugins: {
|
|
1989
1989
|
astro: pluginAstro
|
|
1990
1990
|
}
|
|
1991
1991
|
},
|
|
1992
1992
|
{
|
|
1993
|
-
name: "luxass
|
|
1993
|
+
name: "luxass/astro/rules",
|
|
1994
1994
|
files,
|
|
1995
1995
|
languageOptions: {
|
|
1996
1996
|
parser: parserAstro,
|
|
@@ -2018,7 +2018,7 @@ async function astro(options = {}) {
|
|
|
2018
2018
|
}
|
|
2019
2019
|
},
|
|
2020
2020
|
{
|
|
2021
|
-
name: "luxass
|
|
2021
|
+
name: "luxass/astro/scripts-js",
|
|
2022
2022
|
files: [
|
|
2023
2023
|
"**/*.astro/*.js",
|
|
2024
2024
|
"*.astro/*.js"
|
|
@@ -2034,7 +2034,7 @@ async function astro(options = {}) {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
},
|
|
2036
2036
|
{
|
|
2037
|
-
name: "luxass
|
|
2037
|
+
name: "luxass/astro/scripts-ts",
|
|
2038
2038
|
files: [
|
|
2039
2039
|
"**/*.astro/*.ts",
|
|
2040
2040
|
"*.astro/*.ts"
|
|
@@ -2070,7 +2070,7 @@ async function tailwindcss(options = {}) {
|
|
|
2070
2070
|
]);
|
|
2071
2071
|
return [
|
|
2072
2072
|
{
|
|
2073
|
-
name: "luxass
|
|
2073
|
+
name: "luxass/tailwindcss/setup",
|
|
2074
2074
|
languageOptions: {
|
|
2075
2075
|
parserOptions: {
|
|
2076
2076
|
ecmaFeatures: {
|
|
@@ -2083,7 +2083,7 @@ async function tailwindcss(options = {}) {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
},
|
|
2085
2085
|
{
|
|
2086
|
-
name: "luxass
|
|
2086
|
+
name: "luxass/tailwindcss/rules",
|
|
2087
2087
|
files,
|
|
2088
2088
|
rules: {
|
|
2089
2089
|
// https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/master/docs/rules/classnames-order.md
|
|
@@ -2152,7 +2152,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2152
2152
|
const pluginFormat = await interop(import("eslint-plugin-format"));
|
|
2153
2153
|
const configs = [
|
|
2154
2154
|
{
|
|
2155
|
-
name: "luxass
|
|
2155
|
+
name: "luxass/formatter/setup",
|
|
2156
2156
|
plugins: {
|
|
2157
2157
|
format: pluginFormat
|
|
2158
2158
|
}
|
|
@@ -2161,7 +2161,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2161
2161
|
if (options.css) {
|
|
2162
2162
|
configs.push(
|
|
2163
2163
|
{
|
|
2164
|
-
name: "luxass
|
|
2164
|
+
name: "luxass/formatter/css",
|
|
2165
2165
|
files: [GLOB_CSS, GLOB_POSTCSS],
|
|
2166
2166
|
languageOptions: {
|
|
2167
2167
|
parser: parserPlain
|
|
@@ -2177,7 +2177,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2177
2177
|
}
|
|
2178
2178
|
},
|
|
2179
2179
|
{
|
|
2180
|
-
name: "luxass
|
|
2180
|
+
name: "luxass/formatter/scss",
|
|
2181
2181
|
files: [GLOB_SCSS],
|
|
2182
2182
|
languageOptions: {
|
|
2183
2183
|
parser: parserPlain
|
|
@@ -2193,7 +2193,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
},
|
|
2195
2195
|
{
|
|
2196
|
-
name: "luxass
|
|
2196
|
+
name: "luxass/formatter/less",
|
|
2197
2197
|
files: [GLOB_LESS],
|
|
2198
2198
|
languageOptions: {
|
|
2199
2199
|
parser: parserPlain
|
|
@@ -2212,7 +2212,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2212
2212
|
}
|
|
2213
2213
|
if (options.html) {
|
|
2214
2214
|
configs.push({
|
|
2215
|
-
name: "luxass
|
|
2215
|
+
name: "luxass/formatter/html",
|
|
2216
2216
|
files: ["**/*.html"],
|
|
2217
2217
|
languageOptions: {
|
|
2218
2218
|
parser: parserPlain
|
|
@@ -2231,7 +2231,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2231
2231
|
if (options.markdown) {
|
|
2232
2232
|
const formater = options.markdown === true ? "prettier" : options.markdown;
|
|
2233
2233
|
configs.push({
|
|
2234
|
-
name: "luxass
|
|
2234
|
+
name: "luxass/formatter/markdown",
|
|
2235
2235
|
files: [GLOB_MARKDOWN],
|
|
2236
2236
|
languageOptions: {
|
|
2237
2237
|
parser: parserPlain
|
|
@@ -2254,7 +2254,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2254
2254
|
}
|
|
2255
2255
|
if (options.astro) {
|
|
2256
2256
|
configs.push({
|
|
2257
|
-
name: "luxass
|
|
2257
|
+
name: "luxass/formatter/astro",
|
|
2258
2258
|
files: [GLOB_ASTRO],
|
|
2259
2259
|
languageOptions: {
|
|
2260
2260
|
parser: parserPlain
|
|
@@ -2275,7 +2275,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2275
2275
|
}
|
|
2276
2276
|
if (options.graphql) {
|
|
2277
2277
|
configs.push({
|
|
2278
|
-
name: "luxass
|
|
2278
|
+
name: "luxass/formatter/graphql",
|
|
2279
2279
|
files: [GLOB_GRAPHQL],
|
|
2280
2280
|
languageOptions: {
|
|
2281
2281
|
parser: parserPlain
|
|
@@ -2313,13 +2313,13 @@ async function toml(options = {}) {
|
|
|
2313
2313
|
]);
|
|
2314
2314
|
return [
|
|
2315
2315
|
{
|
|
2316
|
-
name: "luxass
|
|
2316
|
+
name: "luxass/toml/setup",
|
|
2317
2317
|
plugins: {
|
|
2318
2318
|
toml: pluginToml
|
|
2319
2319
|
}
|
|
2320
2320
|
},
|
|
2321
2321
|
{
|
|
2322
|
-
name: "luxass
|
|
2322
|
+
name: "luxass/toml/rules",
|
|
2323
2323
|
files,
|
|
2324
2324
|
languageOptions: {
|
|
2325
2325
|
parser: parserToml
|
|
@@ -2370,13 +2370,13 @@ async function solid(options = {}) {
|
|
|
2370
2370
|
]);
|
|
2371
2371
|
return [
|
|
2372
2372
|
{
|
|
2373
|
-
name: "luxass
|
|
2373
|
+
name: "luxass/solid/setup",
|
|
2374
2374
|
plugins: {
|
|
2375
2375
|
solid: pluginSolid
|
|
2376
2376
|
}
|
|
2377
2377
|
},
|
|
2378
2378
|
{
|
|
2379
|
-
name: "luxass
|
|
2379
|
+
name: "luxass/solid/rules",
|
|
2380
2380
|
files,
|
|
2381
2381
|
languageOptions: {
|
|
2382
2382
|
parserOptions: {
|
|
@@ -2619,7 +2619,7 @@ function luxass(options = {}, ...userConfigs) {
|
|
|
2619
2619
|
if (Object.keys(fusedConfig).length) {
|
|
2620
2620
|
configs.push([fusedConfig]);
|
|
2621
2621
|
}
|
|
2622
|
-
let pipeline = new
|
|
2622
|
+
let pipeline = new FlatConfigComposer();
|
|
2623
2623
|
pipeline = pipeline.append(
|
|
2624
2624
|
...configs,
|
|
2625
2625
|
...userConfigs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxass/eslint-config",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.3",
|
|
4
4
|
"description": "ESLint config for @luxass",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "pnpm typegen && tsup --format esm,cjs --clean --dts",
|
|
41
|
-
"
|
|
41
|
+
"stub": "tsup --format esm",
|
|
42
|
+
"dev": "tsup --format esm,cjs --watch & npx @eslint/config-inspector",
|
|
43
|
+
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
42
44
|
"test": "vitest --run",
|
|
43
45
|
"typegen": "pnpx tsx ./scripts/typegen.ts",
|
|
44
46
|
"test:watch": "vitest",
|
|
@@ -102,10 +104,10 @@
|
|
|
102
104
|
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
|
103
105
|
"@typescript-eslint/parser": "^7.4.0",
|
|
104
106
|
"eslint-config-flat-gitignore": "^0.1.3",
|
|
105
|
-
"eslint-flat-config-utils": "^0.
|
|
107
|
+
"eslint-flat-config-utils": "^0.2.0",
|
|
106
108
|
"eslint-merge-processors": "^0.1.0",
|
|
107
109
|
"eslint-plugin-antfu": "^2.1.2",
|
|
108
|
-
"eslint-plugin-import-x": "^0.
|
|
110
|
+
"eslint-plugin-import-x": "^0.5.0",
|
|
109
111
|
"eslint-plugin-jsdoc": "^48.2.2",
|
|
110
112
|
"eslint-plugin-jsonc": "^2.14.1",
|
|
111
113
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
@@ -115,7 +117,7 @@
|
|
|
115
117
|
"eslint-plugin-toml": "^0.10.0",
|
|
116
118
|
"eslint-plugin-unicorn": "^51.0.1",
|
|
117
119
|
"eslint-plugin-unused-imports": "^3.1.0",
|
|
118
|
-
"eslint-plugin-vitest": "^0.4.
|
|
120
|
+
"eslint-plugin-vitest": "^0.4.1",
|
|
119
121
|
"eslint-plugin-vue": "^9.24.0",
|
|
120
122
|
"eslint-plugin-yml": "^1.13.2",
|
|
121
123
|
"eslint-processor-vue-blocks": "^0.1.1",
|
|
@@ -129,13 +131,14 @@
|
|
|
129
131
|
},
|
|
130
132
|
"devDependencies": {
|
|
131
133
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
134
|
+
"@eslint/config-inspector": "^0.4.1",
|
|
132
135
|
"@next/eslint-plugin-next": "^14.1.4",
|
|
133
136
|
"@stylistic/eslint-plugin-migrate": "^1.7.0",
|
|
134
137
|
"@types/eslint": "^8.56.6",
|
|
135
138
|
"@types/estree": "^1.0.5",
|
|
136
139
|
"@types/node": "^18.17.19",
|
|
137
140
|
"@typescript-eslint/rule-tester": "^7.4.0",
|
|
138
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
141
|
+
"@unocss/eslint-plugin": "^0.58.8",
|
|
139
142
|
"astro-eslint-parser": "^0.16.3",
|
|
140
143
|
"eslint": "9.0.0-rc.0",
|
|
141
144
|
"eslint-plugin-astro": "^0.33.1",
|
|
@@ -145,7 +148,7 @@
|
|
|
145
148
|
"eslint-plugin-react-refresh": "^0.4.6",
|
|
146
149
|
"eslint-plugin-solid": "^0.13.2",
|
|
147
150
|
"eslint-plugin-tailwindcss": "^3.15.1",
|
|
148
|
-
"eslint-typegen": "^0.
|
|
151
|
+
"eslint-typegen": "^0.2.0",
|
|
149
152
|
"jiti": "^1.21.0",
|
|
150
153
|
"lint-staged": "^15.2.2",
|
|
151
154
|
"prettier-plugin-astro": "^0.13.0",
|