๐Ÿ“ฆ vuetifyjs / eslint-plugin-vuetify

๐Ÿงผ Version upgrade automation eslint plugin

โ˜… 127 stars โ‘‚ 28 forks ๐Ÿ‘ 127 watching โš–๏ธ Other
eslint-pluginvuetify
๐Ÿ“ฅ Clone https://github.com/vuetifyjs/eslint-plugin-vuetify.git
HTTPS git clone https://github.com/vuetifyjs/eslint-plugin-vuetify.git
SSH git clone git@github.com:vuetifyjs/eslint-plugin-vuetify.git
CLI gh repo clone vuetifyjs/eslint-plugin-vuetify
Kael Kael chore(ci): use trusted publishing dda33a4 28 days ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ .husky
๐Ÿ“ docs
๐Ÿ“ scripts
๐Ÿ“ src
๐Ÿ“ tests
๐Ÿ“„ .gitignore
๐Ÿ“„ .nvmrc
๐Ÿ“„ babel.config.js
๐Ÿ“„ eslint.config.js
๐Ÿ“„ LICENSE.md
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ README.md
๐Ÿ“„ renovate.json
๐Ÿ“„ README.md

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

// eslint.config.js
import vue from 'eslint-plugin-vue'
import vuetify from 'eslint-plugin-vuetify'

export default [
  ...vue.configs['flat/base'],
  ...vuetify.configs['flat/base'],
]

Eslint 8 can alternatively use the older configuration format:

// .eslintrc.js
module.exports = {
  extends: [
    'plugin:vue/base',
    'plugin:vuetify/base'
  ]
}

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 base preset.

  • Prevent the use of components that have been removed from Vuetify ([no-deprecated-components])
  • Prevent the use of props that have been removed from Vuetify ([no-deprecated-props])
  • Prevent the use of events that have been removed from Vuetify ([no-deprecated-events])
  • Prevent the use of classes that have been removed from Vuetify ([no-deprecated-classes])
  • Prevent the use of the old theme class syntax ([no-deprecated-colors])
  • Prevent the use of deprecated import paths ([no-deprecated-imports])
  • Ensure icon buttons have a variant defined ([icon-button-variant])

Grid system

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

  • Warn about unknown attributes not being converted to classes on new grid components ([grid-unknown-attributes])

๐Ÿ’ช 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