vue-eslint-parser
Advanced tools
Comparing version 9.1.1 to 9.3.0
// Generated by dts-bundle v0.7.3 | ||
// Dependencies for this module: | ||
// ../eslint-scope | ||
// ../@typescript-eslint/utils | ||
// ../eslint-visitor-keys | ||
@@ -11,2 +12,6 @@ | ||
export { AST }; | ||
export const meta: { | ||
name: string; | ||
version: string | undefined; | ||
}; | ||
} | ||
@@ -60,6 +65,7 @@ | ||
import type { Token } from "vue-eslint-parser/ast/tokens"; | ||
import type { TSESTree } from "@typescript-eslint/utils"; | ||
export interface HasParent { | ||
parent?: Node | null; | ||
} | ||
export type Node = ESLintNode | VNode | VForExpression | VOnExpression | VSlotScopeExpression | VFilterSequenceExpression | VFilter; | ||
export type Node = ESLintNode | VNode | VForExpression | VOnExpression | VSlotScopeExpression | VGenericExpression | VFilterSequenceExpression | VFilter; | ||
export type ESLintNode = ESLintIdentifier | ESLintLiteral | ESLintProgram | ESLintSwitchCase | ESLintCatchClause | ESLintVariableDeclarator | ESLintStatement | ESLintExpression | ESLintProperty | ESLintAssignmentProperty | ESLintSuper | ESLintTemplateElement | ESLintSpreadElement | ESLintPattern | ESLintClassBody | ESLintMethodDefinition | ESLintPropertyDefinition | ESLintStaticBlock | ESLintPrivateIdentifier | ESLintModuleDeclaration | ESLintModuleSpecifier | ESLintImportExpression | ESLintLegacyRestProperty; | ||
@@ -512,3 +518,3 @@ export interface ESLintExtendedProgram { | ||
id: ESLintIdentifier; | ||
kind: "v-for" | "scope"; | ||
kind: "v-for" | "scope" | "generic"; | ||
references: Reference[]; | ||
@@ -539,2 +545,8 @@ } | ||
} | ||
export interface VGenericExpression extends HasLocation, HasParent { | ||
type: "VGenericExpression"; | ||
parent: VExpressionContainer; | ||
params: TSESTree.TSTypeParameterDeclaration["params"]; | ||
rawParams: string[]; | ||
} | ||
export interface VFilterSequenceExpression extends HasLocation, HasParent { | ||
@@ -561,3 +573,3 @@ type: "VFilterSequenceExpression"; | ||
parent: VDocumentFragment | VElement | VDirective | VDirectiveKey; | ||
expression: ESLintExpression | VFilterSequenceExpression | VForExpression | VOnExpression | VSlotScopeExpression | null; | ||
expression: ESLintExpression | VFilterSequenceExpression | VForExpression | VOnExpression | VSlotScopeExpression | VGenericExpression | null; | ||
references: Reference[]; | ||
@@ -564,0 +576,0 @@ } |
{ | ||
"name": "vue-eslint-parser", | ||
"version": "9.1.1", | ||
"version": "9.3.0", | ||
"description": "The ESLint custom parser for `.vue` files.", | ||
@@ -59,2 +59,3 @@ "engines": { | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"rollup-plugin-sourcemaps": "^0.6.3", | ||
@@ -79,4 +80,3 @@ "ts-node": "^10.4.0", | ||
"test:debug": "mocha --require ts-node/register/transpile-only \"test/*.js\" --reporter dot --timeout 60000", | ||
"preupdate-fixtures": "npm run -s build", | ||
"update-fixtures": "node scripts/update-fixtures-ast.js && node scripts/update-fixtures-document-fragment.js", | ||
"update-fixtures": "ts-node --transpile-only scripts/update-fixtures-ast.js && ts-node --transpile-only scripts/update-fixtures-document-fragment.js", | ||
"preversion": "npm test", | ||
@@ -83,0 +83,0 @@ "version": "npm run -s build", |
@@ -145,2 +145,3 @@ # vue-eslint-parser | ||
"styleCSSVariableInjection": true, | ||
"customMacros": [] | ||
} | ||
@@ -217,2 +218,9 @@ } | ||
### parserOptions.vueFeatures.customMacros | ||
Specifies an array of names of custom macros other than Vue standard macros. | ||
For example, if you have a custom macro `defineFoo()` and you want it processed by the parser, specify `["defineFoo"]`. | ||
Note that this option only works in `<script setup>`. | ||
### parserOptions.templateTokenizer | ||
@@ -219,0 +227,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1120923
7122
331
40