diff --git a/lib/types.ts b/lib/types.ts
index 89ad9c51..51a8d586 100644
--- a/lib/types.ts
+++ b/lib/types.ts
@@ -37,7 +37,7 @@ export interface VDirectiveKeyV5 extends AST.HasLocation, AST.HasParent {
name: string
argument: string | null
modifiers: string[]
- parent: AST.VAttribute
+ parent: AST.VDirective
shorthand: boolean
raw: {
name: string
@@ -47,7 +47,7 @@ export interface VDirectiveKeyV5 extends AST.HasLocation, AST.HasParent {
}
export interface VDirectiveKeyV6 extends AST.HasLocation, AST.HasParent {
type: "VDirectiveKey"
- parent: AST.VAttribute
+ parent: AST.VDirective
name: AST.VIdentifier
argument: AST.VExpressionContainer | AST.VIdentifier | null
modifiers: AST.VIdentifier[]
diff --git a/package-lock.json b/package-lock.json
index 9b94ba43..f647fa2f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7687,19 +7687,18 @@
}
},
"eslint-plugin-vue-scoped-css": {
- "version": "0.5.0",
- "resolved": "https://registry.npmjs.org/eslint-plugin-vue-scoped-css/-/eslint-plugin-vue-scoped-css-0.5.0.tgz",
- "integrity": "sha512-hEvgtC405AByh33spNt07aLv1PLVROOVNhaic0KfPxDn+CH4nmSoH43qgwkBMOq+mCl134Htlkxu1T/+Jpheew==",
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-vue-scoped-css/-/eslint-plugin-vue-scoped-css-1.1.0.tgz",
+ "integrity": "sha512-m68gZiBxf+dovvM0ww12trqf0NgORFMOxt44lVymXS8YbqBd6EJLhQNu+Cu/ldB/3uUlMB8itjtquyp8IclKGg==",
"dev": true,
"requires": {
- "eslint-utils": "^2.0.0",
- "lodash": "^4.17.15",
- "postcss": "^7.0.29",
+ "eslint-utils": "^2.1.0",
+ "lodash": "^4.17.19",
+ "postcss": "^7.0.32",
"postcss-safe-parser": "^4.0.2",
- "postcss-scss": "^2.0.0",
+ "postcss-scss": "^2.1.1",
"postcss-selector-parser": "^6.0.2",
- "postcss-styl": "^0.7.1",
- "vue-eslint-parser": "^7.0.0 || ^6.0.0 || ^5.0.0"
+ "postcss-styl": "^0.7.1"
},
"dependencies": {
"postcss-styl": {
@@ -16390,9 +16389,9 @@
"dev": true
},
"vue-eslint-parser": {
- "version": "7.1.0",
- "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-7.1.0.tgz",
- "integrity": "sha512-Kr21uPfthDc63nDl27AGQEhtt9VrZ9nkYk/NTftJ2ws9XiJwzJJCnCr3AITQ2jpRMA0XPGDECxYH8E027qMK9Q==",
+ "version": "7.4.1",
+ "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-7.4.1.tgz",
+ "integrity": "sha512-AFvhdxpFvliYq1xt/biNBslTHE/zbEvSnr1qfHA/KxRIpErmEDrQZlQnvEexednRHmLfDNOMuDYwZL5xkLzIXQ==",
"dev": true,
"requires": {
"debug": "^4.1.1",
@@ -16401,25 +16400,6 @@
"espree": "^6.2.1",
"esquery": "^1.0.1",
"lodash": "^4.17.15"
- },
- "dependencies": {
- "acorn": {
- "version": "7.3.1",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.3.1.tgz",
- "integrity": "sha512-tLc0wSnatxAQHVHUapaHdz72pi9KUyHjq5KyHjGg9Y8Ifdc79pTh2XvI6I1/chZbnM7QtNKzh66ooDogPZSleA==",
- "dev": true
- },
- "espree": {
- "version": "6.2.1",
- "resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz",
- "integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==",
- "dev": true,
- "requires": {
- "acorn": "^7.1.1",
- "acorn-jsx": "^5.2.0",
- "eslint-visitor-keys": "^1.1.0"
- }
- }
}
},
"vue-hot-reload-api": {
diff --git a/package.json b/package.json
index 5b581135..6b0980b1 100644
--- a/package.json
+++ b/package.json
@@ -67,7 +67,7 @@
"eslint-plugin-prettier": "^3.3.0",
"eslint-plugin-regexp": "^0.1.1",
"eslint-plugin-vue": "^7.3.0",
- "eslint-plugin-vue-scoped-css": "^0.5.0",
+ "eslint-plugin-vue-scoped-css": "^1.0.0",
"eslint4b": "^7.5.0",
"mocha": "^7.0.0",
"nyc": "^15.1.0",
@@ -82,6 +82,7 @@
"ts-node": "^8.10.2",
"typescript": "^4.1.3",
"vue-eslint-editor": "^1.1.0",
+ "vue-eslint-parser": "^7.4.1",
"vuepress": "^1.7.1"
},
"dependencies": {
diff --git a/tests/lib/rules/no-parsing-error.ts b/tests/lib/rules/no-parsing-error.ts
index a4586885..32ca30b3 100644
--- a/tests/lib/rules/no-parsing-error.ts
+++ b/tests/lib/rules/no-parsing-error.ts
@@ -63,12 +63,12 @@ tester.run("no-parsing-error", rule as any, {
-