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
||[vue/no-unused-components](./docs/rules/no-unused-components.md)| disallow registering components that are not used inside templates|
160
160
||[vue/no-unused-vars](./docs/rules/no-unused-vars.md)| disallow unused variable definitions of v-for directives or scope attributes |
161
161
||[vue/no-use-v-if-with-v-for](./docs/rules/no-use-v-if-with-v-for.md)| disallow use v-if on the same element as v-for |
162
162
||[vue/require-component-is](./docs/rules/require-component-is.md)| require `v-bind:is` of `<component>` elements |
163
+
|:wrench:|[vue/require-prop-type-constructor](./docs/rules/require-prop-type-constructor.md)| require prop type to be a constructor |
163
164
||[vue/require-render-return](./docs/rules/require-render-return.md)| enforce render function to always return value |
164
165
||[vue/require-v-for-key](./docs/rules/require-v-for-key.md)| require `v-bind:key` with `v-for` directives |
165
166
||[vue/require-valid-default-prop](./docs/rules/require-valid-default-prop.md)| enforce props default values to be valid |
@@ -231,7 +232,6 @@ Enforce all the rules in this category, as well as all higher priority rules, wi
231
232
|| Rule ID | Description |
232
233
|:---|:--------|:------------|
233
234
|:wrench:|[vue/component-name-in-template-casing](./docs/rules/component-name-in-template-casing.md)| enforce specific casing for the component naming style in template |
234
-
|:wrench:|[vue/require-prop-type-constructor](./docs/rules/require-prop-type-constructor.md)| require prop type to be a constructor |
235
235
|:wrench:|[vue/script-indent](./docs/rules/script-indent.md)| enforce consistent indentation in `<script>`|
Copy file name to clipboardExpand all lines: docs/rules/require-prop-type-constructor.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# require prop type to be a constructor (vue/require-prop-type-constructor)
2
2
3
+
-:gear: This rule is included in all of `"plugin:vue/essential"`, `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
3
4
-:wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
4
5
5
6
This rule reports prop types that can't be presumed as constructors.
0 commit comments