Comments (9)
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.
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.
This plugin is only really intended to be used for migration from v2-v3, not for existing v3 projects.
from eslint-plugin-vuetify.
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.
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.
: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.
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.
@KaelWD the ignore config would be great!
from eslint-plugin-vuetify.
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)
- [BUG] `v-autocomplete` incorrectly reports `value-comparator` as deprecated HOT 1
- Fix has invalid range HOT 3
- Definition for rule 'vuetify/no-legacy-grid' was not found HOT 3
- v-slider @start and @end events are supported in Vuetify 3.2.0 HOT 1
- Incorrectly flags boolean props with no value HOT 1
- [v-select] Incorrect error: 'item-color' has been replaced with 'item-props.color'
- [BUG] `v-img` incorrectly reports `position` as deprecated HOT 1
- [BUG] 'v-calendar' has been removed - vuetify/no-deprecated-components | Update to vuetify v3.4.9
- Can v-btn `tile` props be automatically replaced with rounded="0"? HOT 1
- Any way to configure aliases?
- [v-select] `dense` not replaced with `density="compact"` HOT 1
- [v-overlay] missing attribute "opacity" HOT 1
- [BUG]: `v-expansion-panels` incorrect reports `flat` has been removed HOT 1
- hideSpinButtons prop was added in Vuetify 3.4.0
- border migration util matches to much HOT 3
- Support ESLint 9.x HOT 6
- how to add the plugin in eslint.config.js HOT 1
- Error finding rule definition for no-deprecated-imports HOT 2
- v-time-picker exists in 3.5.12
- Missing rule for migration from vuetifyjs v1.5 to v2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-vuetify.