astro-eslint-parser 1.2.1 → 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 +9 -1
- package/lib/index.mjs +9 -1
- package/package.json +4 -4
package/lib/index.d.mts
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -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
|
@@ -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",
|
|
@@ -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
|
},
|