eslint-plugin-vue-libs

raw JSON →
4.0.0 verified Sat Apr 25 auth: no javascript

ESLint plugin and config for internal development of Vue.js ecosystem libraries (e.g., vue-router, vuex, vue-cli). Version 4.0.0, maintained by the Vue.js core team. It is not intended for Vue application development; instead it enforces Vue team coding conventions and provides a recommended preset. Different from the general eslint-plugin-vue which targets Vue SFCs and templates.

error Error: Failed to load plugin 'vue-libs' declared in '.eslintrc': Cannot find module 'eslint-plugin-vue-libs'
cause Plugin not installed or missing in node_modules.
fix
Run npm install eslint-plugin-vue-libs --save-dev
error ESLint couldn't find the config 'plugin:vue-libs/recommended' after extending.
cause Incorrect config name or plugin not loaded.
fix
Ensure extends uses 'plugin:vue-libs/recommended' exactly and that the plugin is installed.
gotcha This plugin is meant for internal Vue organization projects, not general Vue app development. It may not be suitable for most Vue applications.
fix Use eslint-plugin-vue instead for general Vue app development.
npm install eslint-plugin-vue-libs
yarn add eslint-plugin-vue-libs
pnpm add eslint-plugin-vue-libs

Install and configure eslint-plugin-vue-libs with recommended preset for Vue team projects.

npm install eslint-plugin-vue-libs --save-dev
// .eslintrc.js
module.exports = {
  extends: ['plugin:vue-libs/recommended'],
  rules: {
    // override rules if needed
  }
};