@vue-vine/eslint-parser 1.1.6 → 1.1.8

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.d.ts CHANGED
@@ -875,6 +875,22 @@ interface VineTemplateMeta {
875
875
  comments: Token[];
876
876
  errors: ParseError[];
877
877
  }
878
+ type NeedFixToken = HasLocation & {
879
+ type: string;
880
+ };
881
+ interface VineFixLocationContext {
882
+ posInfo: VineTemplatePositionInfo;
883
+ fixedCache: WeakSet<Location | OffsetRange>;
884
+ }
885
+ declare enum ReferenceFlag {
886
+ Read = 1,
887
+ Write = 2,
888
+ ReadWrite = 3,
889
+ }
890
+ declare enum ReferenceTypeFlag {
891
+ Value = 1,
892
+ Type = 2,
893
+ }
878
894
  type FinalProcessTemplateInfo = ReturnType<typeof prepareTemplate> & {
879
895
  templateRootAST: VTemplateRoot;
880
896
  templateMeta: VineTemplateMeta;
@@ -886,4 +902,4 @@ declare function parse(code: string, parserOptions: VineESLintParserOptions): Pa
886
902
  declare function parseForESLint(code: string, parserOptions: VineESLintParserOptions): ParseForESLintResult;
887
903
  declare const _default: Linter.Parser;
888
904
  //#endregion
889
- export { ESLintArrayExpression, ESLintArrayPattern, ESLintArrowFunctionExpression, ESLintAssignmentExpression, ESLintAssignmentPattern, ESLintAssignmentProperty, ESLintAwaitExpression, ESLintBigIntLiteral, ESLintBinaryExpression, ESLintBlockStatement, ESLintBooleanLiteral, ESLintBreakStatement, ESLintCallExpression, ESLintCatchClause, ESLintChainElement, ESLintChainExpression, ESLintClassBody, ESLintClassDeclaration, ESLintClassExpression, ESLintConditionalExpression, ESLintContinueStatement, ESLintDebuggerStatement, ESLintDeclaration, ESLintDirective, ESLintDoWhileStatement, ESLintEmptyStatement, ESLintExportAllDeclaration, ESLintExportDefaultDeclaration, ESLintExportNamedDeclaration, ESLintExportSpecifier, ESLintExpression, ESLintExpressionStatement, ESLintExtendedProgram, ESLintForInStatement, ESLintForOfStatement, ESLintForStatement, ESLintFunctionDeclaration, ESLintFunctionExpression, ESLintIdentifier, ESLintIfStatement, ESLintImportDeclaration, ESLintImportDefaultSpecifier, ESLintImportExpression, ESLintImportNamespaceSpecifier, ESLintImportSpecifier, ESLintLabeledStatement, ESLintLegacyRestProperty, ESLintLegacySpreadProperty, ESLintLiteral, ESLintLogicalExpression, ESLintMemberExpression, ESLintMetaProperty, ESLintMethodDefinition, ESLintModuleDeclaration, ESLintModuleSpecifier, ESLintNewExpression, ESLintNode, ESLintNullLiteral, ESLintNumberLiteral, ESLintObjectExpression, ESLintObjectPattern, ESLintPattern, ESLintPrivateIdentifier, ESLintProgram, ESLintProperty, ESLintPropertyDefinition, ESLintRegExpLiteral, ESLintRestElement, ESLintReturnStatement, ESLintSequenceExpression, ESLintSpreadElement, ESLintStatement, ESLintStaticBlock, ESLintStringLiteral, ESLintSuper, ESLintSwitchCase, ESLintSwitchStatement, ESLintTaggedTemplateExpression, ESLintTemplateElement, ESLintTemplateLiteral, ESLintThisExpression, ESLintThrowStatement, ESLintTryStatement, ESLintUnaryExpression, ESLintUpdateExpression, ESLintVariableDeclaration, ESLintVariableDeclarator, ESLintWhileStatement, ESLintWithStatement, ESLintYieldExpression, ErrorCode, HasConcreteInfo, HasLocation, HasParent, KEYS, Location, LocationRange, NS, Namespace, Node, Offset, OffsetRange, ParseError, Reference, Token, VAttribute, VDirective, VDirectiveKey, VElement, VEndTag, VExpression, VExpressionContainer, VFilter, VFilterSequenceExpression, VForExpression, VIdentifier, VLiteral, VNode, VOnExpression, VSlotScopeExpression, VStartTag, VTemplateNode, VTemplateRoot, VText, Variable, Visitor, _default as default, getFallbackKeys, meta, parse, parseForESLint, traverseNodes };
905
+ export { ESLintArrayExpression, ESLintArrayPattern, ESLintArrowFunctionExpression, ESLintAssignmentExpression, ESLintAssignmentPattern, ESLintAssignmentProperty, ESLintAwaitExpression, ESLintBigIntLiteral, ESLintBinaryExpression, ESLintBlockStatement, ESLintBooleanLiteral, ESLintBreakStatement, ESLintCallExpression, ESLintCatchClause, ESLintChainElement, ESLintChainExpression, ESLintClassBody, ESLintClassDeclaration, ESLintClassExpression, ESLintConditionalExpression, ESLintContinueStatement, ESLintDebuggerStatement, ESLintDeclaration, ESLintDirective, ESLintDoWhileStatement, ESLintEmptyStatement, ESLintExportAllDeclaration, ESLintExportDefaultDeclaration, ESLintExportNamedDeclaration, ESLintExportSpecifier, ESLintExpression, ESLintExpressionStatement, ESLintExtendedProgram, ESLintForInStatement, ESLintForOfStatement, ESLintForStatement, ESLintFunctionDeclaration, ESLintFunctionExpression, ESLintIdentifier, ESLintIfStatement, ESLintImportDeclaration, ESLintImportDefaultSpecifier, ESLintImportExpression, ESLintImportNamespaceSpecifier, ESLintImportSpecifier, ESLintLabeledStatement, ESLintLegacyRestProperty, ESLintLegacySpreadProperty, ESLintLiteral, ESLintLogicalExpression, ESLintMemberExpression, ESLintMetaProperty, ESLintMethodDefinition, ESLintModuleDeclaration, ESLintModuleSpecifier, ESLintNewExpression, ESLintNode, ESLintNullLiteral, ESLintNumberLiteral, ESLintObjectExpression, ESLintObjectPattern, ESLintPattern, ESLintPrivateIdentifier, ESLintProgram, ESLintProperty, ESLintPropertyDefinition, ESLintRegExpLiteral, ESLintRestElement, ESLintReturnStatement, ESLintSequenceExpression, ESLintSpreadElement, ESLintStatement, ESLintStaticBlock, ESLintStringLiteral, ESLintSuper, ESLintSwitchCase, ESLintSwitchStatement, ESLintTaggedTemplateExpression, ESLintTemplateElement, ESLintTemplateLiteral, ESLintThisExpression, ESLintThrowStatement, ESLintTryStatement, ESLintUnaryExpression, ESLintUpdateExpression, ESLintVariableDeclaration, ESLintVariableDeclarator, ESLintWhileStatement, ESLintWithStatement, ESLintYieldExpression, ErrorCode, FinalProcessTemplateInfo, HasConcreteInfo, HasLocation, HasParent, KEYS, Location, LocationRange, NS, Namespace, NeedFixToken, Node, Offset, OffsetRange, ParseError, ParseForESLintResult, PrettierType, Reference, ReferenceFlag, ReferenceTypeFlag, Token, TsESLintParseForESLint, VAttribute, VDirective, VDirectiveKey, VElement, VEndTag, VExpression, VExpressionContainer, VFilter, VFilterSequenceExpression, VForExpression, VIdentifier, VLiteral, VNode, VOnExpression, VSlotScopeExpression, VStartTag, VTemplateNode, VTemplateRoot, VText, Variable, VineESLintParserOptions, VineFixLocationContext, VineTemplateMeta, VineTemplatePositionInfo, Visitor, _default as default, getFallbackKeys, meta, parse, parseForESLint, traverseNodes };
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
39
39
  //#endregion
40
40
  //#region package.json
41
41
  var name = "@vue-vine/eslint-parser";
42
- var version = "1.1.6";
42
+ var version = "1.1.8";
43
43
 
44
44
  //#endregion
45
45
  //#region src/ast/errors.ts
@@ -10344,4 +10344,4 @@ var src_default = {
10344
10344
  };
10345
10345
 
10346
10346
  //#endregion
10347
- export { KEYS, NS, ParseError, src_default as default, getFallbackKeys, meta, parse, parseForESLint, traverseNodes };
10347
+ export { KEYS, NS, ParseError, ReferenceFlag, ReferenceTypeFlag, src_default as default, getFallbackKeys, meta, parse, parseForESLint, traverseNodes };
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.6",
4
+ "version": "1.1.8",
5
5
  "description": "ESLint parser for Vue Vine",
6
6
  "author": "ShenQingchuan",
7
7
  "license": "MIT",
@@ -29,25 +29,25 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@typescript-eslint/parser": "~8.32.1",
33
- "@typescript-eslint/scope-manager": "~8.32.1",
34
- "@typescript-eslint/typescript-estree": "~8.32.1",
32
+ "@typescript-eslint/parser": "~8.35.1",
33
+ "@typescript-eslint/scope-manager": "~8.35.1",
34
+ "@typescript-eslint/typescript-estree": "~8.35.1",
35
35
  "debug": "^4.4.1",
36
- "eslint-scope": "^8.3.0",
37
- "espree": "^10.3.0",
36
+ "eslint-scope": "^8.4.0",
37
+ "espree": "^10.4.0",
38
38
  "line-column": "^1.0.2",
39
39
  "semver": "^7.7.2"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/debug": "^4.1.12",
43
- "@types/estree": "^1.0.7",
43
+ "@types/estree": "^1.0.8",
44
44
  "@types/line-column": "^1.0.2",
45
- "@types/lodash": "^4.17.17",
46
- "@types/node": "^22.15.21",
45
+ "@types/lodash": "^4.17.20",
46
+ "@types/node": "^22.16.0",
47
47
  "@types/semver": "^7.7.0",
48
- "@typescript-eslint/types": "~8.33.0",
48
+ "@typescript-eslint/types": "~8.35.1",
49
49
  "@typescript/native-preview": "latest",
50
- "eslint": "~9.27.0",
50
+ "eslint": "~9.30.1",
51
51
  "lodash": "^4.17.21"
52
52
  },
53
53
  "scripts": {