eslint-config-vue-typescript-eslint

eslint config for vue with typescript
4,069 9
Install
npm install eslint-config-vue-typescript-eslint
Latest Version:1.2.1
License:Apache-2.0
Last Updated:Jul 24, 2026
Links: GitHub  ·  npm
Maintainer: honluk

vue-typescript-eslint

License Node

Getting Started

  • first init your project with @vue/cli 3.0,select typescript with eslint

  • install:

npm i eslint-config-vue-typescript-eslint --save-dev
  • edit .eslintrc.js :
module.exports = {
  extends: [
    "vue-typescript-eslint"
  ]
};
  • You can customize the rules:
module.exports = {
  extends: [
    "vue-typescript-eslint"
  ],
  rules:{
      //some rules here,such as:
      // 'indent': [
       //     'error',
       //     2,
       //     {
       //         SwitchCase: 1,
       //         flatTernaryExpressions: true
       //     }
      // ],
  }
};
  • edit shims-tsx.d.ts:
import Vue, { VNode } from "vue";

declare global {
  namespace JSX {
    /* eslint-disable */
        interface Element extends VNode {}
        interface ElementClass extends Vue {}
        interface IntrinsicElements {
            [elem: string]: any;
        }
    }
}

Vscode Setting

 //eslint
    "eslint.autoFixOnSave": true,
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        {
            "language": "vue",
            "autoFix": true
        },
        {
            "language": "typescript",
            "autoFix": true
        },
        {
            "language": "typescriptreact",
            "autoFix": true
        }
    ],

Thanks

AlloyTeam/eslint-config-alloy

静晴轩别苑

Related Packages

@vue/create-eslint-config

Utility to setup ESLint in Vue.js projects.

27,225 52
eslint-config-ktsn-vue

ESLint config for Vue.js project

12,758 1
@detools/eslint-config-vue

Eslint Shared Config for Vue based on AirBnB Styleguide

8,977 1
@snabcentr/eslint-config

Библиотека стилей оформления JS/TS/Vue/HTML кода.

5,237
@calipsa/eslint-config-vue

Shareable eslint vue config for Calipsa

5,030

Version History

Version Released License
1.2.1 Apache-2.0
1.2.0 Apache-2.0
1.1.8 Apache-2.0
1.1.7 Apache-2.0
1.1.6 Apache-2.0