/eslint-plugin-vuetify

An eslint plugin for Vuetify

Primary LanguageJavaScriptOtherNOASSERTION

eslint-plugin-vuetify

This package is for migrating from Vuetify v2 to v3, use eslint-plugin-vuetify@vuetify-2 for v1 to v2.


Support the maintainer of this plugin:

Kael Watts-Deuchar

Become a Patron

💿 Install

You should have eslint and eslint-plugin-vue set up first.

yarn add eslint-plugin-vuetify -D
# OR
npm install eslint-plugin-vuetify --save-dev
// .eslintrc.js
module.exports = {
  extends: [
    'plugin:vue/base',
    'plugin:vuetify/base'
  ]
}

If you are using the new "flat" config system introduced in eslint v8.21.0 and made the default starting in v9.0.0. Then instead of an .eslintrc.js file you will have a eslint.config.js file. In that case you will use the following snippet instead.

// eslint.config.js
import pluginVuetify from "eslint-plugin-vuetify/configs/flat/base.js"
// To use the `recommended` configuration (including extra rules for the grid system) replace `base.js` with `recommended.js`

export default [
  pluginVuetify
]

NOTE This plugin does not affect pug templates due to a limitation in vue-eslint-parser. I suggest converting your pug templates to HTML with pug-to-html in order to use this plugin.

Rules

Deprecations

These rules will help you avoid deprecated components, props, and classes. They are included in the plugin:vuetify/base preset.

Grid system

These rules are designed to help migrate to the new grid system in Vuetify v2. They are included in the plugin:vuetify/recommended preset.

💪 Supporting Vuetify

Vuetify is an open source MIT project that has been made possible due to the generous contributions by community backers. If you are interested in supporting this project, please consider:

📑 License

MIT

Copyright (c) 2016-present Vuetify LLC