From 4fc9116825147366f3a1abc4989eb9e1116ec49f Mon Sep 17 00:00:00 2001 From: Hideaki Matsunami Date: Fri, 29 Apr 2022 15:20:46 +0900 Subject: [PATCH] Add typing 'Literal#raw' property 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. --- typings/eslint-plugin-vue/util-types/ast/es-ast.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/typings/eslint-plugin-vue/util-types/ast/es-ast.ts b/typings/eslint-plugin-vue/util-types/ast/es-ast.ts index bafff6d2b..16a734d2e 100644 --- a/typings/eslint-plugin-vue/util-types/ast/es-ast.ts +++ b/typings/eslint-plugin-vue/util-types/ast/es-ast.ts @@ -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