-
-
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 proposition: no-dupe-keys
.
#86
Comments
Thank you for the proposal! Sounds reasonable to me. Also, the names which start with |
@mysticatea i think we should rename this rule to same as core
👍 i didn't know that but i will add this. |
no-duplicate-field-names
.no-dupe-keys
.
I like this proposition a lot, but.. I think this rule should be splitted into two rules.
So that each rule does only one thing. What do you think @mysticatea @armano2 ? |
eslint recommends to make functions to small chunks and split them to separate rules.
@michalsnik i like it 👍 |
There is many fields in vue instance/component where we can specify properties visible inside component,
data
,props
,computed
,methods
.Invalid Code:
Also there is few reserved names witch should not be overridden by vue instance:
$data
,$props
,$el
,$options
,$parent
,$root
,$children
,$slots
,$scopedSlots
,$refs
,$isServer
,$attrs
,$listeners
$watch
,$set
,$delete
,$on
,$once
,$off
,$emit
,$mount
,$forceUpdate
,$nextTick
,$destroy
.....also user should be able to specify his own reserved names to remove conflicts with used plugins.
The text was updated successfully, but these errors were encountered: