@luxass/eslint-config 4.3.1 → 4.3.2
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 +15 -18
- package/dist/index.d.cts +6605 -3630
- package/dist/index.d.ts +6605 -3630
- package/dist/index.js +16 -19
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -295,7 +295,7 @@ function node() {
|
|
|
295
295
|
function sortPackageJson() {
|
|
296
296
|
return [
|
|
297
297
|
{
|
|
298
|
-
name: "luxass:sort
|
|
298
|
+
name: "luxass:sort:package-json",
|
|
299
299
|
files: ["**/package.json"],
|
|
300
300
|
rules: {
|
|
301
301
|
"jsonc/sort-array-values": [
|
|
@@ -395,7 +395,7 @@ function sortPackageJson() {
|
|
|
395
395
|
function sortTsconfig() {
|
|
396
396
|
return [
|
|
397
397
|
{
|
|
398
|
-
name: "luxass:sort
|
|
398
|
+
name: "luxass:sort:tsconfig",
|
|
399
399
|
files: ["**/tsconfig.json", "**/tsconfig.*.json"],
|
|
400
400
|
rules: {
|
|
401
401
|
"jsonc/sort-keys": [
|
|
@@ -549,7 +549,7 @@ async function imports(options = {}) {
|
|
|
549
549
|
}
|
|
550
550
|
},
|
|
551
551
|
{
|
|
552
|
-
name: "luxass:imports
|
|
552
|
+
name: "luxass:disables:imports-bin",
|
|
553
553
|
files: ["**/bin/**/*", `**/bin.${GLOB_SRC_EXT}`],
|
|
554
554
|
rules: {
|
|
555
555
|
"antfu/no-import-dist": "off",
|
|
@@ -804,15 +804,12 @@ async function javascript(options = {}) {
|
|
|
804
804
|
}
|
|
805
805
|
},
|
|
806
806
|
{
|
|
807
|
-
name: "luxass:
|
|
808
|
-
files: [
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
{
|
|
814
|
-
name: "luxass:playground-overrides",
|
|
815
|
-
files: [`**/playground.${GLOB_SRC_EXT}`],
|
|
807
|
+
name: "luxass:disables:cli",
|
|
808
|
+
files: [
|
|
809
|
+
`scripts/${GLOB_SRC}`,
|
|
810
|
+
`cli.${GLOB_SRC_EXT}`,
|
|
811
|
+
`**/playground.${GLOB_SRC_EXT}`
|
|
812
|
+
],
|
|
816
813
|
rules: {
|
|
817
814
|
"no-console": "off"
|
|
818
815
|
}
|
|
@@ -1323,7 +1320,7 @@ async function typescript(options = {}) {
|
|
|
1323
1320
|
}
|
|
1324
1321
|
},
|
|
1325
1322
|
{
|
|
1326
|
-
name: "luxass:typescript:dts
|
|
1323
|
+
name: "luxass:typescript:disables:dts",
|
|
1327
1324
|
files: ["**/*.d.ts"],
|
|
1328
1325
|
rules: {
|
|
1329
1326
|
"eslint-comments/no-unlimited-disable": "off",
|
|
@@ -1333,21 +1330,21 @@ async function typescript(options = {}) {
|
|
|
1333
1330
|
}
|
|
1334
1331
|
},
|
|
1335
1332
|
{
|
|
1336
|
-
name: "luxass:typescript:tests
|
|
1333
|
+
name: "luxass:typescript:disables:tests",
|
|
1337
1334
|
files: ["**/*.{test,spec}.ts?(x)"],
|
|
1338
1335
|
rules: {
|
|
1339
1336
|
"no-unused-expressions": "off"
|
|
1340
1337
|
}
|
|
1341
1338
|
},
|
|
1342
1339
|
{
|
|
1343
|
-
name: "luxass:typescript:playground
|
|
1340
|
+
name: "luxass:typescript:disables:playground",
|
|
1344
1341
|
files: [`**/playground.${GLOB_SRC_EXT}`],
|
|
1345
1342
|
rules: {
|
|
1346
1343
|
"no-console": "off"
|
|
1347
1344
|
}
|
|
1348
1345
|
},
|
|
1349
1346
|
{
|
|
1350
|
-
name: "luxass:typescript:javascript
|
|
1347
|
+
name: "luxass:typescript:disables:javascript",
|
|
1351
1348
|
files: ["**/*.js", "**/*.cjs"],
|
|
1352
1349
|
rules: {
|
|
1353
1350
|
"ts/no-require-imports": "off",
|
|
@@ -2247,7 +2244,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2247
2244
|
const pluginFormat = await interop(import("eslint-plugin-format"));
|
|
2248
2245
|
const configs = [
|
|
2249
2246
|
{
|
|
2250
|
-
name: "luxass:
|
|
2247
|
+
name: "luxass:formatter:setup",
|
|
2251
2248
|
plugins: {
|
|
2252
2249
|
format: pluginFormat
|
|
2253
2250
|
}
|
|
@@ -2714,7 +2711,7 @@ function luxass(options = {}, ...userConfigs) {
|
|
|
2714
2711
|
if (Object.keys(fusedConfig).length) {
|
|
2715
2712
|
configs.push([fusedConfig]);
|
|
2716
2713
|
}
|
|
2717
|
-
let pipeline = new import_eslint_flat_config_utils.
|
|
2714
|
+
let pipeline = new import_eslint_flat_config_utils.FlatConfigComposer();
|
|
2718
2715
|
pipeline = pipeline.append(
|
|
2719
2716
|
...configs,
|
|
2720
2717
|
...userConfigs
|