8000 require-prop-type-constructor · vuejs/eslint-plugin-vue@bcb2d93 · GitHub
[go: up one dir, main page]

Skip to content

Commit bcb2d93

Browse files
committed
require-prop-type-constructor
1 parent ebb0a1d commit bcb2d93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/require-prop-type-constructor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
- :gear: This rule is included in all of `"plugin:vue/essential"`, `"plugin:vue/strongly-recommended"` and `"plugin:vue/recommended"`.
44
- :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.
55

6+
## Rule Details
7+
68
This rule reports prop types that can't be presumed as constructors.
79

810
It's impossible to catch every possible case and know whether the prop type is a constructor or not, hence this rule black list few types of nodes, instead of white-listing correct ones.
@@ -16,8 +18,6 @@ The following types are forbidden and will be reported:
1618

1719
It will catch most commonly made mistakes which are using strings instead of constructors.
1820

19-
## Rule Details
20-
2121
<eslint-code-block :rules="{'vue/require-prop-type-constructor': ['error']}">
2222
```vue
2323
<script>

0 commit comments

Comments
 (0)
0