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
Those are two different requests. The second one sounds like #2172; this should not be part of the vue/define-*-declaration rules.
The first one sounds good, but might also be better suited as a new rule (one for all, with good defaults). I suggest the name vue/require-macro-variable-name with one options object to customize the names. The default would be:
What rule do you want to change?
New config fields:
define*
variable (e.g.{ "name": "props" }
)vue/define-emits-declaration
e.g.{ "prefix": true }
)Does this change cause the rule to produce more or fewer warnings?
More (depends on configuration).
How will the change be implemented? (New option, new default behavior, etc.)?
The default behavior does not change the current behavior of the rule.
Please provide some example code that this change will affect:
"vue/define-props-declaration": ["error", "type-based", { "name": "props" } ]
"vue/define-props-declaration": ["error", "type-based", { "prefix": true } ]
"vue/define-slots-declaration": ["error", "always", { "name": "slots", "prefix": true } ]
"vue/define-attrs-declaration": ["error", "always", { "name": "attrs", "prefix": true } ]
What does the rule currently do for this code?
https://eslint.vuejs.org/rules/define-props-declaration.html
The text was updated successfully, but these errors were encountered: