From: Haoqun Jiang Date: Tue, 14 Jun 2022 07:26:32 +0000 (+0800) Subject: feat: update TypeScript ESLint config X-Git-Tag: v3.2.1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4baa6ba435c07da66751e45b07e6c1ea31534488;p=thirdparty%2Fvuejs%2Fcreate-vue.git feat: update TypeScript ESLint config --- diff --git a/template/eslint/package.json b/template/eslint/package.json index 613c57e3..c9fee828 100644 --- a/template/eslint/package.json +++ b/template/eslint/package.json @@ -2,10 +2,10 @@ "devDependencies": { "@rushstack/eslint-patch": "^1.1.0", "@vue/eslint-config-prettier": "^7.0.0", - "@vue/eslint-config-typescript": "^10.0.0", + "@vue/eslint-config-typescript": "^11.0.0", "eslint": "^8.5.0", "eslint-plugin-cypress": "^2.12.1", - "eslint-plugin-vue": "^8.2.0", + "eslint-plugin-vue": "^9.0.0", "prettier": "^2.5.1" } } diff --git a/utils/renderEslint.ts b/utils/renderEslint.ts index 4e4e9601..1cea63c5 100644 --- a/utils/renderEslint.ts +++ b/utils/renderEslint.ts @@ -20,10 +20,7 @@ interface ESLintConfig extends Linter.Config { } const config: ESLintConfig = { root: true, - extends: ['plugin:vue/vue3-essential'], - env: { - 'vue/setup-compiler-macros': true - } + extends: ['plugin:vue/vue3-essential'] } function configureEslint({ language, styleGuide, needsPrettier, needsCypress, needsCypressCT }) {