# eslint-config-typescript **Repository Path**: vuejs/eslint-config-typescript ## Basic Information - **Project Name**: eslint-config-typescript - **Description**: eslint-config-typescript for vue-cli - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-08-03 - **Last Updated**: 2025-08-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # @vue/eslint-config-typescript ESLint configuration for Vue 3 + TypeScript projects. See [@typescript-eslint/eslint-plugin](https://typescript-eslint.io/rules/) for available rules. This config is specifically designed to be used by `create-vue` setups and is not meant for outside use (it can be used but some adaptations on the user side might be needed - for details see the config file). A part of its design is that this config may implicitly depend on other parts of `create-vue` setups, such as `eslint-plugin-vue` being extended in the same resulting config. > [!NOTE] > The current version doesn't support the legacy `.eslintrc*` configuration format. For that you need to use version 13 or earlier. See the [corresponding README](https://www.npmjs.com/package/@vue/eslint-config-typescript/v/legacy-eslintrc) for more usage instructions. ## Installation ```sh npm add --dev @vue/eslint-config-typescript ``` Please also make sure that you have `typescript` and `eslint` installed. ## Usage Because of the complexity of the configurations, this package exports several utilities: - `defineConfigWithVueTs`, a utility function whose type signature is the same as the [`config` function from `typescript-eslint`](https://typescript-eslint.io/packages/typescript-eslint#config), but will modify the given ESLint config to work with Vue.js + TypeScript. - `vueTsConfigs`, contains all the [shared configurations from `typescript-eslint`](https://typescript-eslint.io/users/configs) (in camelCase, e.g. `vueTsConfigs.recommendedTypeChecked`), and applies to `.vue` files in addition to TypeScript files. - a Vue-specific config factory: `configureVueProject({ scriptLangs, rootDir })`. More info below. ### Minimal Setup ```js // eslint.config.mjs import pluginVue from 'eslint-plugin-vue' import { defineConfigWithVueTs, vueTsConfigs, } from '@vue/eslint-config-typescript' export default defineConfigWithVueTs( pluginVue.configs['flat/essential'], vueTsConfigs.recommended, ) ``` The above configuration enables [the essential rules for Vue 3](https://eslint.vuejs.org/rules/#priority-a-essential-error-prevention) and [the recommended rules for TypeScript](https://typescript-eslint.io/rules/?=recommended). All the `