You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why should this rule be included in ESLint (instead of a plugin)?
Passing a string to type rather than the name of the type results in a rather opaque error message from deep in the bowels of Vue, and it's an easy mistake to make.
The text was updated successfully, but these errors were encountered:
I like this! Though note that constructors rather than objects should be allowed. It would go in essentials and a more complete list of situations to warn about might be:
Please describe what the rule should do:
Ensure that the
type
key for a property is passed as an Object, not as a string.What category of rule is this? (place an "X" next to just one item)
[ ] Enforces code style
[x] Warns about a potential error
[ ] Suggests an alternate way of doing something
[ ] Other (please specify:)
Provide 2-3 code examples that this rule will warn about:
Why should this rule be included in ESLint (instead of a plugin)?
Passing a string to
type
rather than the name of the type results in a rather opaque error message from deep in the bowels of Vue, and it's an easy mistake to make.The text was updated successfully, but these errors were encountered: