diff --git a/template-eslint/vue-ts/eslint.config.mjs b/template-eslint/vue-ts/eslint.config.mjs index 09f34fd..4ba01b2 100644 --- a/template-eslint/vue-ts/eslint.config.mjs +++ b/template-eslint/vue-ts/eslint.config.mjs @@ -2,11 +2,13 @@ import js from '@eslint/js'; import vue from 'eslint-plugin-vue'; import globals from 'globals'; import ts from 'typescript-eslint'; +import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'; export default [ { languageOptions: { globals: globals.browser } }, js.configs.recommended, ...ts.configs.recommended, ...vue.configs['flat/essential'], + ...defineConfigWithVueTs(vueTsConfigs.recommended), { ignores: ['dist/'] }, ]; diff --git a/template-eslint/vue-ts/package.json b/template-eslint/vue-ts/package.json index 8c687b7..db0bb98 100644 --- a/template-eslint/vue-ts/package.json +++ b/template-eslint/vue-ts/package.json @@ -7,6 +7,7 @@ }, "devDependencies": { "@eslint/js": "^9.23.0", + "@vue/eslint-config-typescript": "^14.5.0", "eslint": "^9.23.0", "eslint-plugin-vue": "^10.0.0", "globals": "^16.0.0",