-
-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rule proposal: slot-syntax rule #800
Comments
I like this idea. I guess that this rule's name should start with For too new syntax, I'm imaging another rule such as |
@mysticatea Thank you for comment!
|
I'm OK to go with either way. I feel that all-in-one |
Ah.., we have the separated |
@mysticatea
In addition, I will add the rule to check the new syntax with the name |
Sounds good to me! |
Please describe what the rule should do:
This rule reports deprecated or removed (in Vue.js 2.6.0) slot syntax.
This rule has the following options.
v-slot
... Iffalse
, disallowv-slot
. defaulttrue
slot
... Iffalse
, disallowslot
. defaulttrue
slot-scope
... Iffalse
, disallowslot-scope
. defaulttrue
scope
... Iffalse
, disallowscope
. defaultfalse
I think we need to discuss the default options.
The listed defaults are designed not to warn v2.5 - 2.6 users.
What category should the rule belong to?
Provide 2-3 code examples that this rule should warn about:
{"v-slot": true, "slot": false, "slot-scope": false, "scope": false}
{"v-slot": false, "slot": true, "slot-scope": true, "scope": false}
Additional context
v-slot
slot
slot-scope
scope
I started implementing on this branch.
However, we need to make the parser supports to
v-slot
.The text was updated successfully, but these errors were encountered: