Skip to content

koffeine/eslint-config-vue

Repository files navigation

eslint-config-vue npm

Koffeine's ESLint shareable config for Vue.js 3

Installation

Use option --save-exact for npm install to make sure that eslint-plugin-vue and config rules match.

Install config

npm install @koffeine/eslint-config-vue --save-dev --save-exact

Install eslint-plugin-vue

Install the correct version of eslint-plugin-vue, which is listed by the command:

npm info @koffeine/eslint-config-vue peerDependencies

For example:

npm install eslint-plugin-vue@7.20.0 --save-dev --save-exact

Usage

Add the following to your .eslintrc.js file:

module.exports = {
    extends: '@koffeine/eslint-config-vue',
    plugins: [ 'vue' ],
    parser: 'vue-eslint-parser'
};

License

Copyright © Kornél Horváth

Licensed under the MIT License.