ESLint plugin for Vue projects at Reflektor Digital.
The dependencies are listed as
dependencies
inpackage.json
instead of justdevDependencies
so that those packages will be installed automatically when we install this plugin. Hence, the only other package we would need to install iseslint
.
yarn add eslint @reflektor/eslint-plugin-vue -D
Once the package and dependencies are installed, we can apply this ESLint plugin into our project.
// .eslintrc.js
module.exports = {
// ...
plugins : [
// ...
'@reflektor/vue'
],
extends : [
// ...
'plugin:@reflektor/vue/nuxt', // For Nuxt projects
// OR
'plugin:@reflektor/vue/base', // For regular Vue projects
]
};