Skip to content

Commit

Permalink
Fix doc of vue/no-potential-component-option-typo rule (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Sep 23, 2020
1 parent 1cbe903 commit 1acb37d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/rules/no-potential-component-option-typo.md
Expand Up @@ -53,7 +53,7 @@ export default {

</eslint-code-block>

> we use editdistance to compare two string similarity, threshold is an option to control upper bound of editdistance to report
> we use edit distance to compare two string similarity, threshold is an option to control upper bound of edit distance to report
**Here is the another example about config option `threshold`**

Expand All @@ -75,15 +75,15 @@ export default {
props: {
},
/* ✓ GOOD, due to threshold is 5 */
method: {
/* ✗ BAD, due to threshold is 5 */
mehtod: {
},
/* ✓ GOOD, due to threshold is 5 */
data: {
},
/* ✗ BAD, due to we don't choose vue-router preset or add a custom option */
/* ✓ GOOD, due to we don't choose vue-router preset or add a custom option */
beforeRouteEnteR() {
}
Expand All @@ -97,7 +97,7 @@ export default {

```json
{
"vue/no-unsed-vars": ["error", {
"vue/no-potential-component-option-typo": ["error", {
"presets": ["vue"],
"custom": [],
"threshold": 1
Expand All @@ -111,11 +111,11 @@ export default {

## :rocket: Suggestion

- We provide all the possible component option that editdistance between your vue component option and configuration options is greater than 0 and lessEqual than threshold
- We provide all the possible component option that edit distance between your vue component option and configuration options is greater than 0 and less equal than threshold

## :books: Further Reading

- [Edit_distance](https://en.wikipedia.org/wiki/Edit_distance)
- [Edit distance](https://en.wikipedia.org/wiki/Edit_distance)

## :mag: Implementation

Expand Down

0 comments on commit 1acb37d

Please sign in to comment.