@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.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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";
|
|
@@ -200,7 +200,7 @@ function node() {
|
|
|
200
200
|
function sortPackageJson() {
|
|
201
201
|
return [
|
|
202
202
|
{
|
|
203
|
-
name: "luxass:sort
|
|
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:sort
|
|
303
|
+
name: "luxass:sort:tsconfig",
|
|
304
304
|
files: ["**/tsconfig.json", "**/tsconfig.*.json"],
|
|
305
305
|
rules: {
|
|
306
306
|
"jsonc/sort-keys": [
|
|
@@ -454,7 +454,7 @@ async function imports(options = {}) {
|
|
|
454
454
|
}
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
|
-
name: "luxass:imports
|
|
457
|
+
name: "luxass:disables:imports-bin",
|
|
458
458
|
files: ["**/bin/**/*", `**/bin.${GLOB_SRC_EXT}`],
|
|
459
459
|
rules: {
|
|
460
460
|
"antfu/no-import-dist": "off",
|
|
@@ -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
|
}
|
|
@@ -1228,7 +1225,7 @@ async function typescript(options = {}) {
|
|
|
1228
1225
|
}
|
|
1229
1226
|
},
|
|
1230
1227
|
{
|
|
1231
|
-
name: "luxass:typescript:dts
|
|
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:typescript:tests
|
|
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:typescript:playground
|
|
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:typescript:javascript
|
|
1252
|
+
name: "luxass:typescript:disables:javascript",
|
|
1256
1253
|
files: ["**/*.js", "**/*.cjs"],
|
|
1257
1254
|
rules: {
|
|
1258
1255
|
"ts/no-require-imports": "off",
|
|
@@ -2152,7 +2149,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2152
2149
|
const pluginFormat = await interop(import("eslint-plugin-format"));
|
|
2153
2150
|
const configs = [
|
|
2154
2151
|
{
|
|
2155
|
-
name: "luxass:
|
|
2152
|
+
name: "luxass:formatter:setup",
|
|
2156
2153
|
plugins: {
|
|
2157
2154
|
format: pluginFormat
|
|
2158
2155
|
}
|
|
@@ -2619,7 +2616,7 @@ function luxass(options = {}, ...userConfigs) {
|
|
|
2619
2616
|
if (Object.keys(fusedConfig).length) {
|
|
2620
2617
|
configs.push([fusedConfig]);
|
|
2621
2618
|
}
|
|
2622
|
-
let pipeline = new
|
|
2619
|
+
let pipeline = new FlatConfigComposer();
|
|
2623
2620
|
pipeline = pipeline.append(
|
|
2624
2621
|
...configs,
|
|
2625
2622
|
...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.2",
|
|
4
4
|
"description": "ESLint config for @luxass",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -102,10 +102,10 @@
|
|
|
102
102
|
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
|
103
103
|
"@typescript-eslint/parser": "^7.4.0",
|
|
104
104
|
"eslint-config-flat-gitignore": "^0.1.3",
|
|
105
|
-
"eslint-flat-config-utils": "^0.
|
|
105
|
+
"eslint-flat-config-utils": "^0.2.0",
|
|
106
106
|
"eslint-merge-processors": "^0.1.0",
|
|
107
107
|
"eslint-plugin-antfu": "^2.1.2",
|
|
108
|
-
"eslint-plugin-import-x": "^0.
|
|
108
|
+
"eslint-plugin-import-x": "^0.5.0",
|
|
109
109
|
"eslint-plugin-jsdoc": "^48.2.2",
|
|
110
110
|
"eslint-plugin-jsonc": "^2.14.1",
|
|
111
111
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"eslint-plugin-toml": "^0.10.0",
|
|
116
116
|
"eslint-plugin-unicorn": "^51.0.1",
|
|
117
117
|
"eslint-plugin-unused-imports": "^3.1.0",
|
|
118
|
-
"eslint-plugin-vitest": "^0.4.
|
|
118
|
+
"eslint-plugin-vitest": "^0.4.1",
|
|
119
119
|
"eslint-plugin-vue": "^9.24.0",
|
|
120
120
|
"eslint-plugin-yml": "^1.13.2",
|
|
121
121
|
"eslint-processor-vue-blocks": "^0.1.1",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"@types/estree": "^1.0.5",
|
|
136
136
|
"@types/node": "^18.17.19",
|
|
137
137
|
"@typescript-eslint/rule-tester": "^7.4.0",
|
|
138
|
-
"@unocss/eslint-plugin": "^0.58.
|
|
138
|
+
"@unocss/eslint-plugin": "^0.58.8",
|
|
139
139
|
"astro-eslint-parser": "^0.16.3",
|
|
140
140
|
"eslint": "9.0.0-rc.0",
|
|
141
141
|
"eslint-plugin-astro": "^0.33.1",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"eslint-plugin-react-refresh": "^0.4.6",
|
|
146
146
|
"eslint-plugin-solid": "^0.13.2",
|
|
147
147
|
"eslint-plugin-tailwindcss": "^3.15.1",
|
|
148
|
-
"eslint-typegen": "^0.
|
|
148
|
+
"eslint-typegen": "^0.2.0",
|
|
149
149
|
"jiti": "^1.21.0",
|
|
150
150
|
"lint-staged": "^15.2.2",
|
|
151
151
|
"prettier-plugin-astro": "^0.13.0",
|