astro-eslint-parser 1.2.0 → 1.2.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/lib/index.d.mts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +11 -3
- package/lib/index.mjs +10 -2
- package/package.json +5 -5
package/lib/index.d.mts
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -278,7 +278,7 @@ function toAbsolutePath(filePath, baseDir) {
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
// src/parser/ts-for-v5/resolve-project-list.ts
|
|
281
|
-
var
|
|
281
|
+
var import_fast_glob = require("fast-glob");
|
|
282
282
|
var import_is_glob = __toESM(require("is-glob"));
|
|
283
283
|
var path3 = __toESM(require("path"));
|
|
284
284
|
var import_module = require("module");
|
|
@@ -308,7 +308,7 @@ function resolveProjectList(options) {
|
|
|
308
308
|
const globProjects = sanitizedProjects.filter((project) => (0, import_is_glob.default)(project));
|
|
309
309
|
const uniqueCanonicalProjectPaths = new Set(
|
|
310
310
|
nonGlobProjects.concat(
|
|
311
|
-
globProjects.length === 0 ? [] : (0,
|
|
311
|
+
globProjects.length === 0 ? [] : (0, import_fast_glob.sync)([...globProjects, ...projectFolderIgnoreList], {
|
|
312
312
|
cwd: options.tsconfigRootDir
|
|
313
313
|
})
|
|
314
314
|
).map(
|
|
@@ -1327,6 +1327,14 @@ function getTokenInfo(ctx, tokens, position) {
|
|
|
1327
1327
|
while (searchOffset < search.length) {
|
|
1328
1328
|
const searchChar = search[searchOffset];
|
|
1329
1329
|
if (ctx.code[codeOffset] === searchChar) {
|
|
1330
|
+
if (searchChar === "&") {
|
|
1331
|
+
const entityCandidate = ctx.code.slice(codeOffset, codeOffset + 5);
|
|
1332
|
+
if (entityCandidate === "&" || entityCandidate === "&") {
|
|
1333
|
+
codeOffset += 5;
|
|
1334
|
+
searchOffset++;
|
|
1335
|
+
continue;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1330
1338
|
codeOffset++;
|
|
1331
1339
|
searchOffset++;
|
|
1332
1340
|
continue;
|
|
@@ -2822,7 +2830,7 @@ __export(meta_exports, {
|
|
|
2822
2830
|
|
|
2823
2831
|
// package.json
|
|
2824
2832
|
var name = "astro-eslint-parser";
|
|
2825
|
-
var version = "1.2.
|
|
2833
|
+
var version = "1.2.2";
|
|
2826
2834
|
|
|
2827
2835
|
// src/index.ts
|
|
2828
2836
|
function parseForESLint2(code, options) {
|
package/lib/index.mjs
CHANGED
|
@@ -247,7 +247,7 @@ function toAbsolutePath(filePath, baseDir) {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// src/parser/ts-for-v5/resolve-project-list.ts
|
|
250
|
-
import { sync as globSync } from "
|
|
250
|
+
import { sync as globSync } from "fast-glob";
|
|
251
251
|
import isGlob from "is-glob";
|
|
252
252
|
import * as path3 from "path";
|
|
253
253
|
import { createRequire } from "module";
|
|
@@ -1305,6 +1305,14 @@ function getTokenInfo(ctx, tokens, position) {
|
|
|
1305
1305
|
while (searchOffset < search.length) {
|
|
1306
1306
|
const searchChar = search[searchOffset];
|
|
1307
1307
|
if (ctx.code[codeOffset] === searchChar) {
|
|
1308
|
+
if (searchChar === "&") {
|
|
1309
|
+
const entityCandidate = ctx.code.slice(codeOffset, codeOffset + 5);
|
|
1310
|
+
if (entityCandidate === "&" || entityCandidate === "&") {
|
|
1311
|
+
codeOffset += 5;
|
|
1312
|
+
searchOffset++;
|
|
1313
|
+
continue;
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1308
1316
|
codeOffset++;
|
|
1309
1317
|
searchOffset++;
|
|
1310
1318
|
continue;
|
|
@@ -2800,7 +2808,7 @@ __export(meta_exports, {
|
|
|
2800
2808
|
|
|
2801
2809
|
// package.json
|
|
2802
2810
|
var name = "astro-eslint-parser";
|
|
2803
|
-
var version = "1.2.
|
|
2811
|
+
var version = "1.2.2";
|
|
2804
2812
|
|
|
2805
2813
|
// src/index.ts
|
|
2806
2814
|
function parseForESLint2(code, options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro-eslint-parser",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Astro component parser for ESLint",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.mjs",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"eslint-scope": "^8.0.1",
|
|
58
58
|
"eslint-visitor-keys": "^4.0.0",
|
|
59
59
|
"espree": "^10.0.0",
|
|
60
|
-
"
|
|
60
|
+
"fast-glob": "^3.3.3",
|
|
61
61
|
"is-glob": "^4.0.3",
|
|
62
62
|
"semver": "^7.3.8"
|
|
63
63
|
},
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"benchmark": "^2.1.4",
|
|
85
85
|
"chai": "^5.0.0",
|
|
86
86
|
"env-cmd": "^10.1.0",
|
|
87
|
-
"esbuild": "^0.
|
|
87
|
+
"esbuild": "^0.25.0",
|
|
88
88
|
"esbuild-register": "^3.3.3",
|
|
89
89
|
"eslint": "^9.19.0",
|
|
90
90
|
"eslint-config-prettier": "^10.0.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
104
104
|
"eslint-plugin-svelte": "^3.0.0-0",
|
|
105
105
|
"estree-walker": "^3.0.0",
|
|
106
|
-
"globals": "^
|
|
106
|
+
"globals": "^16.0.0",
|
|
107
107
|
"locate-character": "^3.0.0",
|
|
108
108
|
"magic-string": "^0.30.0",
|
|
109
109
|
"mocha": "^11.0.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"string-replace-loader": "^3.0.3",
|
|
116
116
|
"svelte": "^5.19.3",
|
|
117
117
|
"tsup": "^8.0.0",
|
|
118
|
-
"typescript": "~5.
|
|
118
|
+
"typescript": "~5.8.0",
|
|
119
119
|
"typescript-eslint": "^8.21.0",
|
|
120
120
|
"typescript-eslint-parser-for-extra-files": "^0.7.0"
|
|
121
121
|
},
|