Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6f0cc6

Browse files
committed
add troubleshooting page
1 parent e91d199 commit e6f0cc6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/.vuepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module.exports = {
3232
['/guide/validators', 'Using VueTypes'],
3333
'/guide/namespaced',
3434
'/guide/configuration',
35+
'/guide/troubleshooting',
3536
],
3637
},
3738
{

docs/guide/troubleshooting.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
sidebarDepth: 0
3+
---
4+
5+
# Troubleshooting
6+
7+
[[toc]]
8+
9+
## ESLint reports a `vue/require-default-prop` error for certain vue-types validators.
10+
11+
If your uses eslint-plugin-vue v6 or lower, you might receive a linting error related to the [vue/require-default-prop](https://eslint.vuejs.org/rules/require-default-prop.html) rule for validators using the `.isRequired` or `.loose` flag (see [vue-types#179](https://github.com/dwightjack/vue-types/issues/179)).
12+
13+
The best solution to fix this issue is to upgrade the library eslint-plugin-vue to v7.
14+
15+
However, if you cannot upgrade the library, you can install [eslint-plugin-vue-types](https://github.com/dwightjack/eslint-plugin-vue-types). The plugin extends eslint-plugin-vue and filters out most incorrectly flagged usage cases.
16+
17+
Read the [plugin documentation](https://github.com/dwightjack/eslint-plugin-vue-types#eslint-plugin-vue-types) for installation and usage details.

0 commit comments

Comments
 (0)