node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

eslint-plugin-vue

eslint-plugin-vue

ESLint plugin for Vue.js projects

Usage

  1. npm install --save-dev eslint-plugin-vue
  2. create a file named .eslintrc in your project:
{
  extends: [ /* your usual extends */ ],
  plugins: ["vue"],
  rules: {
    'vue/jsx-uses-vars': 2,
  },
}
  1. OPTIONAL: install eslint-config-vue: npm install --save-dev eslint-config-vue
  2. OPTIONAL: then use the recommended configurations in your .eslintrc:
{
  extends: ["vue", /* your other extends */],
  plugins: ["vue"],
  rules: {
    /* your overrides -- vue/jsx-uses-vars is included in eslint-config-vue */
  },
}

License

MIT