From dc0e3ea9cdc8a8930cb24d472d3b04ee47d42626 Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Sat, 30 Oct 2021 13:09:17 +0900 Subject: [PATCH] Upgrade vue-eslint-parser to use patch. (#1691) * Upgrade vue-eslint-parser to use patch. https://github.com/vuejs/vue-eslint-parser/releases/tag/v8.0.1 * fix --- package.json | 2 +- .../rules/no-async-in-computed-properties.js | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 99beb02dd..9e5a20170 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "eslint-utils": "^3.0.0", "natural-compare": "^1.4.0", "semver": "^7.3.5", - "vue-eslint-parser": "^8.0.0" + "vue-eslint-parser": "^8.0.1" }, "devDependencies": { "@types/eslint": "^7.28.1", diff --git a/tests/lib/rules/no-async-in-computed-properties.js b/tests/lib/rules/no-async-in-computed-properties.js index c54b833af..a244c7747 100644 --- a/tests/lib/rules/no-async-in-computed-properties.js +++ b/tests/lib/rules/no-async-in-computed-properties.js @@ -307,6 +307,31 @@ ruleTester.run('no-async-in-computed-properties', rule, { } `, parserOptions + }, + { + // https://github.com/vuejs/eslint-plugin-vue/issues/1690 + filename: 'test.vue', + parser, + parserOptions: { + sourceType: 'module', + ecmaVersion: 2020 + }, + code: ` + + + ` } ],