@vue-vine/eslint-parser 1.1.2 → 1.1.4
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.js +13 -14
- package/package.json +3 -2
package/dist/index.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import Module, { createRequire } from "node:module";
|
2
2
|
import { parseForESLint as parseForESLint$1 } from "@typescript-eslint/parser";
|
3
|
-
import * as tsEscopeTypes$1 from "@typescript-eslint/scope-manager";
|
4
3
|
import * as tsEscopeTypes from "@typescript-eslint/scope-manager";
|
5
4
|
import * as escope from "eslint-scope";
|
6
5
|
import { lt, lte } from "semver";
|
@@ -40,7 +39,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
40
39
|
//#endregion
|
41
40
|
//#region package.json
|
42
41
|
var name = "@vue-vine/eslint-parser";
|
43
|
-
var version = "1.1.
|
42
|
+
var version = "1.1.4";
|
44
43
|
|
45
44
|
//#endregion
|
46
45
|
//#region src/ast/errors.ts
|
@@ -129,7 +128,7 @@ const NS = Object.freeze({
|
|
129
128
|
});
|
130
129
|
|
131
130
|
//#endregion
|
132
|
-
//#region ../../node_modules/.pnpm/eslint-visitor-keys@4.2.
|
131
|
+
//#region ../../node_modules/.pnpm/eslint-visitor-keys@4.2.1/node_modules/eslint-visitor-keys/lib/visitor-keys.js
|
133
132
|
/**
|
134
133
|
* @typedef {{ readonly [type: string]: ReadonlyArray<string> }} VisitorKeys
|
135
134
|
*/
|
@@ -183,7 +182,7 @@ const KEYS$1 = {
|
|
183
182
|
"source",
|
184
183
|
"attributes"
|
185
184
|
],
|
186
|
-
ExportSpecifier: ["
|
185
|
+
ExportSpecifier: ["local", "exported"],
|
187
186
|
ExpressionStatement: ["expression"],
|
188
187
|
ForInStatement: [
|
189
188
|
"left",
|
@@ -295,7 +294,7 @@ Object.freeze(KEYS$1);
|
|
295
294
|
var visitor_keys_default = KEYS$1;
|
296
295
|
|
297
296
|
//#endregion
|
298
|
-
//#region ../../node_modules/.pnpm/eslint-visitor-keys@4.2.
|
297
|
+
//#region ../../node_modules/.pnpm/eslint-visitor-keys@4.2.1/node_modules/eslint-visitor-keys/lib/index.js
|
299
298
|
/**
|
300
299
|
* Make the union set with `KEYS` and given keys.
|
301
300
|
* @param {VisitorKeys} additionalKeys The additional keys.
|
@@ -531,7 +530,7 @@ let ReferenceTypeFlag = /* @__PURE__ */ function(ReferenceTypeFlag$1) {
|
|
531
530
|
//#endregion
|
532
531
|
//#region src/common/vine-specific.ts
|
533
532
|
function createVirtualVineFnPropsReference({ compFnPropsIdentifier, foundVCFScope }) {
|
534
|
-
const virtualReference = new tsEscopeTypes
|
533
|
+
const virtualReference = new tsEscopeTypes.Reference(compFnPropsIdentifier, foundVCFScope, ReferenceFlag.Read, void 0, void 0, void 0, ReferenceTypeFlag.Value);
|
535
534
|
virtualReference.isWrite = () => false;
|
536
535
|
virtualReference.isWriteOnly = () => false;
|
537
536
|
virtualReference.isRead = () => true;
|
@@ -3592,9 +3591,9 @@ function isBasicParserObject(value) {
|
|
3592
3591
|
|
3593
3592
|
//#endregion
|
3594
3593
|
//#region src/script/index.ts
|
3595
|
-
var import_first = __toESM(require_first());
|
3596
|
-
var import_last$2 = __toESM(require_last());
|
3597
|
-
var import_sortedIndexBy = __toESM(require_sortedIndexBy());
|
3594
|
+
var import_first = __toESM(require_first(), 1);
|
3595
|
+
var import_last$2 = __toESM(require_last(), 1);
|
3596
|
+
var import_sortedIndexBy = __toESM(require_sortedIndexBy(), 1);
|
3598
3597
|
const ALIAS_ITERATOR = /^([\s\S]*?(?:\s|\)))(\bin\b|\bof\b)([\s\S]*)$/u;
|
3599
3598
|
const PARENS = /^(\s*\()([\s\S]*?)(\)\s*)$/u;
|
3600
3599
|
const DUMMY_PARENT$2 = {};
|
@@ -5244,7 +5243,7 @@ var require_sortedLastIndex = __commonJS({ "../../node_modules/.pnpm/lodash@4.17
|
|
5244
5243
|
|
5245
5244
|
//#endregion
|
5246
5245
|
//#region src/common/lines-and-columns.ts
|
5247
|
-
var import_sortedLastIndex$1 = __toESM(require_sortedLastIndex());
|
5246
|
+
var import_sortedLastIndex$1 = __toESM(require_sortedLastIndex(), 1);
|
5248
5247
|
/**
|
5249
5248
|
* A class for getting lines and columns location.
|
5250
5249
|
*/
|
@@ -5282,7 +5281,7 @@ var LinesAndColumns = class {
|
|
5282
5281
|
|
5283
5282
|
//#endregion
|
5284
5283
|
//#region src/common/location-calculator.ts
|
5285
|
-
var import_sortedLastIndex = __toESM(require_sortedLastIndex());
|
5284
|
+
var import_sortedLastIndex = __toESM(require_sortedLastIndex(), 1);
|
5286
5285
|
/**
|
5287
5286
|
* Location calculators.
|
5288
5287
|
*
|
@@ -5374,7 +5373,7 @@ var LocationCalculatorForHtml = class LocationCalculatorForHtml extends LinesAnd
|
|
5374
5373
|
|
5375
5374
|
//#endregion
|
5376
5375
|
//#region src/template/intermediate-tokenizer.ts
|
5377
|
-
var import_last$1 = __toESM(require_last());
|
5376
|
+
var import_last$1 = __toESM(require_last(), 1);
|
5378
5377
|
const DUMMY_PARENT$1 = Object.freeze({});
|
5379
5378
|
/**
|
5380
5379
|
* Concatenate token values.
|
@@ -6181,8 +6180,8 @@ for (const name$1 of SVG_TAGS) if (/[A-Z]/.test(name$1)) SVG_ELEMENT_NAME_MAP.se
|
|
6181
6180
|
|
6182
6181
|
//#endregion
|
6183
6182
|
//#region src/template/parser.ts
|
6184
|
-
var import_findLastIndex = __toESM(require_findLastIndex());
|
6185
|
-
var import_last = __toESM(require_last());
|
6183
|
+
var import_findLastIndex = __toESM(require_findLastIndex(), 1);
|
6184
|
+
var import_last = __toESM(require_last(), 1);
|
6186
6185
|
const DIRECTIVE_NAME = /^(?:v-|[.:@#]).*[^.:@#]$/u;
|
6187
6186
|
const DT_DD = /^d[dt]$/u;
|
6188
6187
|
const DUMMY_PARENT = Object.freeze({});
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vue-vine/eslint-parser",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.1.
|
4
|
+
"version": "1.1.4",
|
5
5
|
"description": "ESLint parser for Vue Vine",
|
6
6
|
"author": "ShenQingchuan",
|
7
7
|
"license": "MIT",
|
@@ -46,12 +46,13 @@
|
|
46
46
|
"@types/node": "^22.15.21",
|
47
47
|
"@types/semver": "^7.7.0",
|
48
48
|
"@typescript-eslint/types": "~8.33.0",
|
49
|
+
"@typescript/native-preview": "latest",
|
49
50
|
"eslint": "~9.27.0",
|
50
51
|
"eslint-visitor-keys": "^4.2.0",
|
51
52
|
"lodash": "^4.17.21"
|
52
53
|
},
|
53
54
|
"scripts": {
|
54
55
|
"test": "vitest",
|
55
|
-
"typecheck": "
|
56
|
+
"typecheck": "tsgo --noEmit"
|
56
57
|
}
|
57
58
|
}
|