vue-eslint-parser
Advanced tools
Comparing version 9.2.1 to 9.3.0
// Generated by dts-bundle v0.7.3 | ||
// Dependencies for this module: | ||
// ../eslint-scope | ||
// ../@typescript-eslint/utils | ||
// ../eslint-visitor-keys | ||
@@ -63,6 +64,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; | ||
@@ -515,3 +517,3 @@ export interface ESLintExtendedProgram { | ||
id: ESLintIdentifier; | ||
kind: "v-for" | "scope"; | ||
kind: "v-for" | "scope" | "generic"; | ||
references: Reference[]; | ||
@@ -542,2 +544,8 @@ } | ||
} | ||
export interface VGenericExpression extends HasLocation, HasParent { | ||
type: "VGenericExpression"; | ||
parent: VExpressionContainer; | ||
params: TSESTree.TSTypeParameterDeclaration["params"]; | ||
rawParams: string[]; | ||
} | ||
export interface VFilterSequenceExpression extends HasLocation, HasParent { | ||
@@ -564,3 +572,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[]; | ||
@@ -567,0 +575,0 @@ } |
{ | ||
"name": "vue-eslint-parser", | ||
"version": "9.2.1", | ||
"version": "9.3.0", | ||
"description": "The ESLint custom parser for `.vue` files.", | ||
@@ -79,4 +79,3 @@ "engines": { | ||
"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 +82,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1120923
7122
331