1.0.2 • Published 23 days ago
@reflektor/eslint-plugin-vue v1.0.2
eslint-plugin-vue
ESLint plugin for Vue projects at Reflektor Digital.
What's inside this config?
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
.
Installation
yarn add eslint @reflektor/eslint-plugin-vue -D
Usage
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
]
};