Giter VIP home page Giter VIP logo

Comments (9)

KaelWD avatar KaelWD commented on June 11, 2024 3

Another option would be something like settings.vuetify.migrationMode = false
https://eslint.org/docs/latest/use/configure/configuration-files#adding-shared-settings

from eslint-plugin-vuetify.

KaelWD avatar KaelWD commented on June 11, 2024 1

Not variables. Static strings is possible, the way rules are defined internally though is just text: { name: 'variant', value: 'text' } which is also shared with other props so probably not easy to add an override just for this.

I could add a config like 'vuetify/no-deprecated-props': ['error', { ignore: { VBtn: ['text'] } }]

from eslint-plugin-vuetify.

KaelWD avatar KaelWD commented on June 11, 2024

This plugin is only really intended to be used for migration from v2-v3, not for existing v3 projects.

from eslint-plugin-vuetify.

mtdvlpr avatar mtdvlpr commented on June 11, 2024

Well, I find it useful to keep using it, so I can prevent accidentally using my old knowledge of Vuetify 2.

from eslint-plugin-vuetify.

mtdvlpr avatar mtdvlpr commented on June 11, 2024

Suppose you started converting your code from v2 to v3 manually and only later discovered this plugin. You wouldn't want the plugin to suddenly remove your button texts.

from eslint-plugin-vuetify.

KaelWD avatar KaelWD commented on June 11, 2024

:text="variable" is replaced with :variant="variable && 'text'" so it isn't really possible to have a rule that works for both

from eslint-plugin-vuetify.

mtdvlpr avatar mtdvlpr commented on June 11, 2024

No easy way to distinguish boolean variables from string variables? If not, I'll figure something out. It's not a biggie.

from eslint-plugin-vuetify.

mtdvlpr avatar mtdvlpr commented on June 11, 2024

@KaelWD the ignore config would be great!

from eslint-plugin-vuetify.

abea avatar abea commented on June 11, 2024

One solution would be to make this a special case at the warn level. The rule description could highlight that the prop has changed and direct people to manually switch to the variant prop instead. As a separate rule it could be disabled individually once the project has made the conversions. I would guess there aren't too many cases like this where a v2 prop is deprecated but there's a new v3 prop that does a totally different thing.

The ignore config would also be helpful.

from eslint-plugin-vuetify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.