vue-eslint-parser
Advanced tools
Comparing version 8.0.1 to 8.1.0
@@ -63,3 +63,3 @@ // Generated by dts-bundle v0.7.3 | ||
export type Node = ESLintNode | VNode | VForExpression | VOnExpression | VSlotScopeExpression | VFilterSequenceExpression | VFilter; | ||
export type ESLintNode = ESLintIdentifier | ESLintLiteral | ESLintProgram | ESLintSwitchCase | ESLintCatchClause | ESLintVariableDeclarator | ESLintStatement | ESLintExpression | ESLintProperty | ESLintAssignmentProperty | ESLintSuper | ESLintTemplateElement | ESLintSpreadElement | ESLintPattern | ESLintClassBody | ESLintMethodDefinition | ESLintModuleDeclaration | ESLintModuleSpecifier | ESLintLegacyRestProperty; | ||
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; | ||
export interface ESLintExtendedProgram { | ||
@@ -138,2 +138,3 @@ ast: ESLintProgram; | ||
body: ESLintStatement; | ||
await: boolean; | ||
} | ||
@@ -169,3 +170,3 @@ export interface ESLintLabeledStatement extends HasLocation, HasParent { | ||
type: "CatchClause"; | ||
param: ESLintPattern; | ||
param: ESLintPattern | null; | ||
body: ESLintBlockStatement; | ||
@@ -208,3 +209,3 @@ } | ||
type: "ClassBody"; | ||
body: ESLintMethodDefinition[]; | ||
body: (ESLintMethodDefinition | ESLintPropertyDefinition | ESLintStaticBlock)[]; | ||
} | ||
@@ -216,5 +217,20 @@ export interface ESLintMethodDefinition extends HasLocation, HasParent { | ||
static: boolean; | ||
key: ESLintExpression; | ||
key: ESLintExpression | ESLintPrivateIdentifier; | ||
value: ESLintFunctionExpression; | ||
} | ||
export interface ESLintPropertyDefinition extends HasLocation, HasParent { | ||
type: "PropertyDefinition"; | ||
computed: boolean; | ||
static: boolean; | ||
key: ESLintExpression | ESLintPrivateIdentifier; | ||
value: ESLintExpression | null; | ||
} | ||
export interface ESLintStaticBlock extends HasLocation, HasParent, Omit<ESLintBlockStatement, "type"> { | ||
type: "StaticBlock"; | ||
body: ESLintStatement[]; | ||
} | ||
export interface ESLintPrivateIdentifier extends HasLocation, HasParent { | ||
type: "PrivateIdentifier"; | ||
name: string; | ||
} | ||
export type ESLintModuleDeclaration = ESLintImportDeclaration | ESLintExportNamedDeclaration | ESLintExportDefaultDeclaration | ESLintExportAllDeclaration; | ||
@@ -229,3 +245,3 @@ export type ESLintModuleSpecifier = ESLintImportSpecifier | ESLintImportDefaultSpecifier | ESLintImportNamespaceSpecifier | ESLintExportSpecifier; | ||
type: "ImportSpecifier"; | ||
imported: ESLintIdentifier; | ||
imported: ESLintIdentifier | ESLintStringLiteral; | ||
local: ESLintIdentifier; | ||
@@ -241,2 +257,6 @@ } | ||
} | ||
export interface ESLintImportExpression extends HasLocation, HasParent { | ||
type: "ImportExpression"; | ||
source: ESLintExpression; | ||
} | ||
export interface ESLintExportNamedDeclaration extends HasLocation, HasParent { | ||
@@ -250,4 +270,4 @@ type: "ExportNamedDeclaration"; | ||
type: "ExportSpecifier"; | ||
local: ESLintIdentifier; | ||
exported: ESLintIdentifier; | ||
local: ESLintIdentifier | ESLintStringLiteral; | ||
exported: ESLintIdentifier | ESLintStringLiteral; | ||
} | ||
@@ -260,5 +280,6 @@ export interface ESLintExportDefaultDeclaration extends HasLocation, HasParent { | ||
type: "ExportAllDeclaration"; | ||
exported: ESLintIdentifier | ESLintStringLiteral | null; | ||
source: ESLintLiteral; | ||
} | ||
export type ESLintExpression = ESLintThisExpression | ESLintArrayExpression | ESLintObjectExpression | ESLintFunctionExpression | ESLintArrowFunctionExpression | ESLintYieldExpression | ESLintLiteral | ESLintUnaryExpression | ESLintUpdateExpression | ESLintBinaryExpression | ESLintAssignmentExpression | ESLintLogicalExpression | ESLintMemberExpression | ESLintConditionalExpression | ESLintCallExpression | ESLintNewExpression | ESLintSequenceExpression | ESLintTemplateLiteral | ESLintTaggedTemplateExpression | ESLintClassExpression | ESLintMetaProperty | ESLintIdentifier | ESLintAwaitExpression; | ||
export type ESLintExpression = ESLintThisExpression | ESLintArrayExpression | ESLintObjectExpression | ESLintFunctionExpression | ESLintArrowFunctionExpression | ESLintYieldExpression | ESLintLiteral | ESLintUnaryExpression | ESLintUpdateExpression | ESLintBinaryExpression | ESLintAssignmentExpression | ESLintLogicalExpression | ESLintMemberExpression | ESLintConditionalExpression | ESLintCallExpression | ESLintNewExpression | ESLintSequenceExpression | ESLintTemplateLiteral | ESLintTaggedTemplateExpression | ESLintClassExpression | ESLintMetaProperty | ESLintIdentifier | ESLintAwaitExpression | ESLintChainExpression; | ||
export interface ESLintIdentifier extends HasLocation, HasParent { | ||
@@ -268,5 +289,6 @@ type: "Identifier"; | ||
} | ||
export interface ESLintLiteral extends HasLocation, HasParent { | ||
interface ESLintLiteralBase extends HasLocation, HasParent { | ||
type: "Literal"; | ||
value: string | boolean | null | number | RegExp; | ||
value: string | boolean | null | number | RegExp | bigint; | ||
raw: string; | ||
regex?: { | ||
@@ -276,3 +298,38 @@ pattern: string; | ||
}; | ||
bigint?: string; | ||
} | ||
export interface ESLintStringLiteral extends ESLintLiteralBase { | ||
value: string; | ||
regex?: undefined; | ||
bigint?: undefined; | ||
} | ||
export interface ESLintBooleanLiteral extends ESLintLiteralBase { | ||
value: boolean; | ||
regex?: undefined; | ||
bigint?: undefined; | ||
} | ||
export interface ESLintNullLiteral extends ESLintLiteralBase { | ||
value: null; | ||
regex?: undefined; | ||
bigint?: undefined; | ||
} | ||
export interface ESLintNumberLiteral extends ESLintLiteralBase { | ||
value: number; | ||
regex?: undefined; | ||
bigint?: undefined; | ||
} | ||
export interface ESLintRegExpLiteral extends ESLintLiteralBase { | ||
value: null | RegExp; | ||
regex: { | ||
pattern: string; | ||
flags: string; | ||
}; | ||
bigint?: undefined; | ||
} | ||
export interface ESLintBigIntLiteral extends ESLintLiteralBase { | ||
value: null | bigint; | ||
regex?: undefined; | ||
bigint: string; | ||
} | ||
export type ESLintLiteral = ESLintStringLiteral | ESLintBooleanLiteral | ESLintNullLiteral | ESLintNumberLiteral | ESLintRegExpLiteral | ESLintBigIntLiteral; | ||
export interface ESLintThisExpression extends HasLocation, HasParent { | ||
@@ -327,3 +384,3 @@ type: "ThisExpression"; | ||
operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "|" | "^" | "&" | "in" | "instanceof"; | ||
left: ESLintExpression; | ||
left: ESLintExpression | ESLintPrivateIdentifier; | ||
right: ESLintExpression; | ||
@@ -333,3 +390,3 @@ } | ||
type: "AssignmentExpression"; | ||
operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&="; | ||
operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??="; | ||
left: ESLintPattern; | ||
@@ -346,3 +403,3 @@ right: ESLintExpression; | ||
type: "LogicalExpression"; | ||
operator: "||" | "&&"; | ||
operator: "||" | "&&" | "??"; | ||
left: ESLintExpression; | ||
@@ -359,2 +416,3 @@ right: ESLintExpression; | ||
type: "CallExpression"; | ||
optional: boolean; | ||
callee: ESLintExpression | ESLintSuper; | ||
@@ -373,5 +431,6 @@ arguments: (ESLintExpression | ESLintSpreadElement)[]; | ||
type: "MemberExpression"; | ||
optional: boolean; | ||
computed: boolean; | ||
object: ESLintExpression | ESLintSuper; | ||
property: ESLintExpression; | ||
property: ESLintExpression | ESLintPrivateIdentifier; | ||
} | ||
@@ -401,3 +460,3 @@ export interface ESLintYieldExpression extends HasLocation, HasParent { | ||
value: { | ||
cooked: string; | ||
cooked: string | null; | ||
raw: string; | ||
@@ -444,2 +503,7 @@ }; | ||
} | ||
export type ESLintChainElement = ESLintCallExpression | ESLintMemberExpression; | ||
export interface ESLintChainExpression extends HasLocation, HasParent { | ||
type: "ChainExpression"; | ||
expression: ESLintChainElement; | ||
} | ||
export interface ESLintLegacyRestProperty extends HasLocation, HasParent { | ||
@@ -581,2 +645,3 @@ type: "RestProperty" | "ExperimentalRestProperty"; | ||
} | ||
export {}; | ||
} | ||
@@ -583,0 +648,0 @@ |
{ | ||
"name": "vue-eslint-parser", | ||
"version": "8.0.1", | ||
"version": "8.1.0", | ||
"description": "The ESLint custom parser for `.vue` files.", | ||
@@ -17,4 +17,4 @@ "engines": { | ||
"debug": "^4.3.2", | ||
"eslint-scope": "^6.0.0", | ||
"eslint-visitor-keys": "^3.0.0", | ||
"eslint-scope": "^7.0.0", | ||
"eslint-visitor-keys": "^3.1.0", | ||
"espree": "^9.0.0", | ||
@@ -26,40 +26,40 @@ "esquery": "^1.4.0", | ||
"devDependencies": { | ||
"@babel/core": "^7.15.0", | ||
"@babel/eslint-parser": "^7.15.0", | ||
"@babel/plugin-syntax-decorators": "^7.14.5", | ||
"@babel/plugin-syntax-pipeline-operator": "^7.15.0", | ||
"@babel/plugin-syntax-typescript": "^7.14.5", | ||
"@types/debug": "0.0.30", | ||
"@types/eslint": "^7.2.6", | ||
"@types/estree": "0.0.45", | ||
"@types/lodash": "^4.14.120", | ||
"@types/mocha": "^5.2.4", | ||
"@types/node": "^10.12.21", | ||
"@types/semver": "^7.3.6", | ||
"@typescript-eslint/eslint-plugin": "^5.0.0-0", | ||
"@typescript-eslint/parser": "^5.0.0-0", | ||
"chokidar": "^2.0.4", | ||
"codecov": "^3.1.0", | ||
"cross-spawn": "^6.0.5", | ||
"@babel/core": "^7.16.0", | ||
"@babel/eslint-parser": "^7.16.3", | ||
"@babel/plugin-syntax-decorators": "^7.16.0", | ||
"@babel/plugin-syntax-pipeline-operator": "^7.16.0", | ||
"@babel/plugin-syntax-typescript": "^7.16.0", | ||
"@types/debug": "^4.1.7", | ||
"@types/eslint": "^7.29.0", | ||
"@types/estree": "^0.0.50", | ||
"@types/lodash": "^4.14.177", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.11.7", | ||
"@types/semver": "^7.3.9", | ||
"@typescript-eslint/eslint-plugin": "^5.4.0", | ||
"@typescript-eslint/parser": "^5.4.0", | ||
"chokidar": "^3.5.2", | ||
"codecov": "^3.8.3", | ||
"cross-spawn": "^7.0.3", | ||
"dts-bundle": "^0.7.3", | ||
"eslint": "^8.0.0", | ||
"eslint": "^8.2.0", | ||
"eslint-plugin-eslint-comments": "^3.2.0", | ||
"eslint-plugin-jsonc": "^1.4.0", | ||
"eslint-plugin-jsonc": "^2.0.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-node-dependencies": "^0.5.0", | ||
"eslint-plugin-node-dependencies": "^0.6.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"fs-extra": "^7.0.1", | ||
"jsonc-eslint-parser": "^0.6.0", | ||
"mocha": "^6.1.4", | ||
"fs-extra": "^10.0.0", | ||
"jsonc-eslint-parser": "^2.0.3", | ||
"mocha": "^9.1.3", | ||
"npm-run-all": "^4.1.5", | ||
"nyc": "^14.0.0", | ||
"opener": "^1.5.1", | ||
"prettier": "^2.3.1", | ||
"rimraf": "^2.6.3", | ||
"rollup": "^1.1.2", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"ts-node": "^8.1.0", | ||
"typescript": "~4.0.5", | ||
"wait-on": "^3.2.0", | ||
"nyc": "^15.1.0", | ||
"opener": "^1.5.2", | ||
"prettier": "^2.4.1", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.60.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-sourcemaps": "^0.6.3", | ||
"ts-node": "^10.4.0", | ||
"typescript": "~4.4.4", | ||
"wait-on": "^6.0.0", | ||
"warun": "^1.0.0" | ||
@@ -66,0 +66,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
986671
6239
+ Addedeslint-scope@7.2.2(transitive)
- Removedeslint-scope@6.0.0(transitive)
Updatedeslint-scope@^7.0.0
Updatedeslint-visitor-keys@^3.1.0