@luxass/eslint-config 4.2.14 → 4.2.15
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 +42 -12
- package/dist/index.js +46 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6,8 +6,8 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
|
-
for (var
|
|
10
|
-
__defProp(target,
|
|
9
|
+
for (var name2 in all)
|
|
10
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
11
11
|
};
|
|
12
12
|
var __copyProps = (to, from, except, desc) => {
|
|
13
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -989,8 +989,39 @@ async function jsonc(options = {}) {
|
|
|
989
989
|
];
|
|
990
990
|
}
|
|
991
991
|
|
|
992
|
+
// node_modules/.pnpm/eslint-parser-plain@0.1.0_patch_hash=2wwjuy7bj3rwnupmtdrepccgsy/node_modules/eslint-parser-plain/dist/index.mjs
|
|
993
|
+
var dist_exports = {};
|
|
994
|
+
__export(dist_exports, {
|
|
995
|
+
meta: () => meta,
|
|
996
|
+
parseForESLint: () => parseForESLint
|
|
997
|
+
});
|
|
998
|
+
|
|
999
|
+
// node_modules/.pnpm/eslint-parser-plain@0.1.0_patch_hash=2wwjuy7bj3rwnupmtdrepccgsy/node_modules/eslint-parser-plain/package.json
|
|
1000
|
+
var name = "eslint-parser-plain";
|
|
1001
|
+
var version = "0.1.0";
|
|
1002
|
+
|
|
1003
|
+
// node_modules/.pnpm/eslint-parser-plain@0.1.0_patch_hash=2wwjuy7bj3rwnupmtdrepccgsy/node_modules/eslint-parser-plain/dist/index.mjs
|
|
1004
|
+
var parseForESLint = (code) => ({
|
|
1005
|
+
ast: {
|
|
1006
|
+
type: "Program",
|
|
1007
|
+
loc: { start: 0, end: code.length },
|
|
1008
|
+
range: [0, code.length],
|
|
1009
|
+
body: [],
|
|
1010
|
+
comments: [],
|
|
1011
|
+
tokens: []
|
|
1012
|
+
},
|
|
1013
|
+
services: { isPlain: true },
|
|
1014
|
+
scopeManager: null,
|
|
1015
|
+
visitorKeys: {
|
|
1016
|
+
Program: []
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
var meta = {
|
|
1020
|
+
name,
|
|
1021
|
+
version
|
|
1022
|
+
};
|
|
1023
|
+
|
|
992
1024
|
// src/configs/markdown.ts
|
|
993
|
-
var parserPlain = __toESM(require("eslint-parser-plain"), 1);
|
|
994
1025
|
var import_eslint_merge_processors = require("eslint-merge-processors");
|
|
995
1026
|
async function markdown(options = {}) {
|
|
996
1027
|
const {
|
|
@@ -1022,7 +1053,7 @@ async function markdown(options = {}) {
|
|
|
1022
1053
|
name: "luxass:markdown:parser",
|
|
1023
1054
|
files,
|
|
1024
1055
|
languageOptions: {
|
|
1025
|
-
parser:
|
|
1056
|
+
parser: dist_exports
|
|
1026
1057
|
}
|
|
1027
1058
|
},
|
|
1028
1059
|
{
|
|
@@ -2182,7 +2213,6 @@ async function tailwindcss(options = {}) {
|
|
|
2182
2213
|
}
|
|
2183
2214
|
|
|
2184
2215
|
// src/configs/formatters.ts
|
|
2185
|
-
var parserPlain2 = __toESM(require("eslint-parser-plain"), 1);
|
|
2186
2216
|
var import_local_pkg3 = require("local-pkg");
|
|
2187
2217
|
async function formatters(options = {}, stylistic2 = {}) {
|
|
2188
2218
|
if (options === true) {
|
|
@@ -2240,7 +2270,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2240
2270
|
name: "luxass:formatter:css",
|
|
2241
2271
|
files: [GLOB_CSS, GLOB_POSTCSS],
|
|
2242
2272
|
languageOptions: {
|
|
2243
|
-
parser:
|
|
2273
|
+
parser: dist_exports
|
|
2244
2274
|
},
|
|
2245
2275
|
rules: {
|
|
2246
2276
|
"format/prettier": [
|
|
@@ -2256,7 +2286,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2256
2286
|
name: "luxass:formatter:scss",
|
|
2257
2287
|
files: [GLOB_SCSS],
|
|
2258
2288
|
languageOptions: {
|
|
2259
|
-
parser:
|
|
2289
|
+
parser: dist_exports
|
|
2260
2290
|
},
|
|
2261
2291
|
rules: {
|
|
2262
2292
|
"format/prettier": [
|
|
@@ -2272,7 +2302,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2272
2302
|
name: "luxass:formatter:less",
|
|
2273
2303
|
files: [GLOB_LESS],
|
|
2274
2304
|
languageOptions: {
|
|
2275
|
-
parser:
|
|
2305
|
+
parser: dist_exports
|
|
2276
2306
|
},
|
|
2277
2307
|
rules: {
|
|
2278
2308
|
"format/prettier": [
|
|
@@ -2291,7 +2321,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2291
2321
|
name: "luxass:formatter:html",
|
|
2292
2322
|
files: ["**/*.html"],
|
|
2293
2323
|
languageOptions: {
|
|
2294
|
-
parser:
|
|
2324
|
+
parser: dist_exports
|
|
2295
2325
|
},
|
|
2296
2326
|
rules: {
|
|
2297
2327
|
"format/prettier": [
|
|
@@ -2310,7 +2340,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2310
2340
|
name: "luxass:formatter:markdown",
|
|
2311
2341
|
files: [GLOB_MARKDOWN],
|
|
2312
2342
|
languageOptions: {
|
|
2313
|
-
parser:
|
|
2343
|
+
parser: dist_exports
|
|
2314
2344
|
},
|
|
2315
2345
|
rules: {
|
|
2316
2346
|
[`format/${formater}`]: [
|
|
@@ -2333,7 +2363,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2333
2363
|
name: "luxass:formatter:astro",
|
|
2334
2364
|
files: [GLOB_ASTRO],
|
|
2335
2365
|
languageOptions: {
|
|
2336
|
-
parser:
|
|
2366
|
+
parser: dist_exports
|
|
2337
2367
|
},
|
|
2338
2368
|
rules: {
|
|
2339
2369
|
"format/prettier": [
|
|
@@ -2354,7 +2384,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2354
2384
|
name: "luxass:formatter:graphql",
|
|
2355
2385
|
files: [GLOB_GRAPHQL],
|
|
2356
2386
|
languageOptions: {
|
|
2357
|
-
parser:
|
|
2387
|
+
parser: dist_exports
|
|
2358
2388
|
},
|
|
2359
2389
|
rules: {
|
|
2360
2390
|
"format/prettier": [
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name2 in all)
|
|
4
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
|
|
1
7
|
// src/factory.ts
|
|
2
8
|
import process3 from "node:process";
|
|
3
9
|
import { existsSync } from "node:fs";
|
|
@@ -894,8 +900,39 @@ async function jsonc(options = {}) {
|
|
|
894
900
|
];
|
|
895
901
|
}
|
|
896
902
|
|
|
903
|
+
// node_modules/.pnpm/eslint-parser-plain@0.1.0_patch_hash=2wwjuy7bj3rwnupmtdrepccgsy/node_modules/eslint-parser-plain/dist/index.mjs
|
|
904
|
+
var dist_exports = {};
|
|
905
|
+
__export(dist_exports, {
|
|
906
|
+
meta: () => meta,
|
|
907
|
+
parseForESLint: () => parseForESLint
|
|
908
|
+
});
|
|
909
|
+
|
|
910
|
+
// node_modules/.pnpm/eslint-parser-plain@0.1.0_patch_hash=2wwjuy7bj3rwnupmtdrepccgsy/node_modules/eslint-parser-plain/package.json
|
|
911
|
+
var name = "eslint-parser-plain";
|
|
912
|
+
var version = "0.1.0";
|
|
913
|
+
|
|
914
|
+
// node_modules/.pnpm/eslint-parser-plain@0.1.0_patch_hash=2wwjuy7bj3rwnupmtdrepccgsy/node_modules/eslint-parser-plain/dist/index.mjs
|
|
915
|
+
var parseForESLint = (code) => ({
|
|
916
|
+
ast: {
|
|
917
|
+
type: "Program",
|
|
918
|
+
loc: { start: 0, end: code.length },
|
|
919
|
+
range: [0, code.length],
|
|
920
|
+
body: [],
|
|
921
|
+
comments: [],
|
|
922
|
+
tokens: []
|
|
923
|
+
},
|
|
924
|
+
services: { isPlain: true },
|
|
925
|
+
scopeManager: null,
|
|
926
|
+
visitorKeys: {
|
|
927
|
+
Program: []
|
|
928
|
+
}
|
|
929
|
+
});
|
|
930
|
+
var meta = {
|
|
931
|
+
name,
|
|
932
|
+
version
|
|
933
|
+
};
|
|
934
|
+
|
|
897
935
|
// src/configs/markdown.ts
|
|
898
|
-
import * as parserPlain from "eslint-parser-plain";
|
|
899
936
|
import { mergeProcessors, processorPassThrough } from "eslint-merge-processors";
|
|
900
937
|
async function markdown(options = {}) {
|
|
901
938
|
const {
|
|
@@ -927,7 +964,7 @@ async function markdown(options = {}) {
|
|
|
927
964
|
name: "luxass:markdown:parser",
|
|
928
965
|
files,
|
|
929
966
|
languageOptions: {
|
|
930
|
-
parser:
|
|
967
|
+
parser: dist_exports
|
|
931
968
|
}
|
|
932
969
|
},
|
|
933
970
|
{
|
|
@@ -2087,7 +2124,6 @@ async function tailwindcss(options = {}) {
|
|
|
2087
2124
|
}
|
|
2088
2125
|
|
|
2089
2126
|
// src/configs/formatters.ts
|
|
2090
|
-
import * as parserPlain2 from "eslint-parser-plain";
|
|
2091
2127
|
import { isPackageExists as isPackageExists3 } from "local-pkg";
|
|
2092
2128
|
async function formatters(options = {}, stylistic2 = {}) {
|
|
2093
2129
|
if (options === true) {
|
|
@@ -2145,7 +2181,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2145
2181
|
name: "luxass:formatter:css",
|
|
2146
2182
|
files: [GLOB_CSS, GLOB_POSTCSS],
|
|
2147
2183
|
languageOptions: {
|
|
2148
|
-
parser:
|
|
2184
|
+
parser: dist_exports
|
|
2149
2185
|
},
|
|
2150
2186
|
rules: {
|
|
2151
2187
|
"format/prettier": [
|
|
@@ -2161,7 +2197,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2161
2197
|
name: "luxass:formatter:scss",
|
|
2162
2198
|
files: [GLOB_SCSS],
|
|
2163
2199
|
languageOptions: {
|
|
2164
|
-
parser:
|
|
2200
|
+
parser: dist_exports
|
|
2165
2201
|
},
|
|
2166
2202
|
rules: {
|
|
2167
2203
|
"format/prettier": [
|
|
@@ -2177,7 +2213,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2177
2213
|
name: "luxass:formatter:less",
|
|
2178
2214
|
files: [GLOB_LESS],
|
|
2179
2215
|
languageOptions: {
|
|
2180
|
-
parser:
|
|
2216
|
+
parser: dist_exports
|
|
2181
2217
|
},
|
|
2182
2218
|
rules: {
|
|
2183
2219
|
"format/prettier": [
|
|
@@ -2196,7 +2232,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2196
2232
|
name: "luxass:formatter:html",
|
|
2197
2233
|
files: ["**/*.html"],
|
|
2198
2234
|
languageOptions: {
|
|
2199
|
-
parser:
|
|
2235
|
+
parser: dist_exports
|
|
2200
2236
|
},
|
|
2201
2237
|
rules: {
|
|
2202
2238
|
"format/prettier": [
|
|
@@ -2215,7 +2251,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2215
2251
|
name: "luxass:formatter:markdown",
|
|
2216
2252
|
files: [GLOB_MARKDOWN],
|
|
2217
2253
|
languageOptions: {
|
|
2218
|
-
parser:
|
|
2254
|
+
parser: dist_exports
|
|
2219
2255
|
},
|
|
2220
2256
|
rules: {
|
|
2221
2257
|
[`format/${formater}`]: [
|
|
@@ -2238,7 +2274,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2238
2274
|
name: "luxass:formatter:astro",
|
|
2239
2275
|
files: [GLOB_ASTRO],
|
|
2240
2276
|
languageOptions: {
|
|
2241
|
-
parser:
|
|
2277
|
+
parser: dist_exports
|
|
2242
2278
|
},
|
|
2243
2279
|
rules: {
|
|
2244
2280
|
"format/prettier": [
|
|
@@ -2259,7 +2295,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
2259
2295
|
name: "luxass:formatter:graphql",
|
|
2260
2296
|
files: [GLOB_GRAPHQL],
|
|
2261
2297
|
languageOptions: {
|
|
2262
|
-
parser:
|
|
2298
|
+
parser: dist_exports
|
|
2263
2299
|
},
|
|
2264
2300
|
rules: {
|
|
2265
2301
|
"format/prettier": [
|