Skip to content

Commit

Permalink
Add typing 'Literal#raw' property
Browse files Browse the repository at this point in the history
vue-eslint-parser's ESLintLiteralBase Node has 'raw' property.
ref: https://github.com/vuejs/vue-eslint-parser/blob/160f4efc4eaf363662b464a4a26a4c9e514deb5d/src/ast/nodes.ts#L395

It was necessary to identify quotes in the match-component-file-name's fixer.
  • Loading branch information
Hideaki Matsunami committed Apr 29, 2022
1 parent 309cace commit 4fc9116
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions typings/eslint-plugin-vue/util-types/ast/es-ast.ts
Expand Up @@ -347,6 +347,7 @@ export interface PrivateIdentifier extends HasParentNode {
export interface Literal extends HasParentNode {
type: 'Literal'
value: string | boolean | null | number | RegExp | BigInt
raw: string
regex?: {
pattern: string
flags: string
Expand Down

0 comments on commit 4fc9116

Please sign in to comment.