Skip to content

shimizukawa/eslint-plugin-vuetify

 
 

Repository files navigation

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

📖 Usage

Use eslint.config.js file to configure rules. This is the default in ESLint v9, but can be used starting from ESLint v8.57.0. See also: https://eslint.org/docs/latest/use/configure/configuration-files-new.

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

export default [
  ...pluginVue.configs['flat/recommended'],
  vuetify.configs.base,
  {
    rules: {
      // override/add rules settings here, such as:
      'vuetify/no-deprecated-classes': 'off',
      'vuetify/icon-button-variant': 'error',
    }
  }
]

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

Grid system

These rules are designed to help migrate to the new grid system in Vuetify v2. They are included in the vuetify.configs.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

About

An eslint plugin for Vuetify

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.8%
  • Shell 0.2%