We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
valid-slot-scope
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
Please describe what the rule should do:
This rule checks whether every slot-scope (or scope) attributes is valid. This rule reports the following cases:
slot-scope
scope
<div slot-scope></div>
<div slot-scope="prop, extra"></div>
<div slot-scope="...props"></div>
maybe "extra access" and "rest parameter" are mistakes of destructuring.
destructuring
What category should the rule belong to?
Provide 2-3 code examples that this rule should warn about:
<template> <TheComponent> <template slot-scope> ... </template> </TheComponent> <TheComponent> <template slot-scope=""> ... </template> </TheComponent> <TheComponent> <template slot-scope="...props"> ... </template> </TheComponent> <TheComponent> <template slot-scope="a, b, c"> <!-- `b` and `c` are extra access. --> ... </template> </TheComponent> </template>
Additional context
The text was updated successfully, but these errors were encountered:
vue/valid-slot-scope
valid-valid-slot-scope
ota-meshi
No branches or pull requests
Please describe what the rule should do:
This rule checks whether every
slot-scope
(orscope
) attributes is valid.This rule reports the following cases:
slot-scope
attribute does not have that attribute value. E.g.<div slot-scope></div>
slot-scope
attribute have the attribute value which is extra access to slot data. E.g.<div slot-scope="prop, extra"></div>
slot-scope
attribute have the attribute value which is rest parameter. E.g.<div slot-scope="...props"></div>
maybe "extra access" and "rest parameter" are mistakes of
destructuring
.What category should the rule belong to?
Provide 2-3 code examples that this rule should warn about:
Additional context
slot-scope
The text was updated successfully, but these errors were encountered: