Skip to content

Commit 1acb37d

Browse files
authored
Fix doc of vue/no-potential-component-option-typo rule (#1308)
1 parent 1cbe903 commit 1acb37d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/rules/no-potential-component-option-typo.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default {
5353

5454
</eslint-code-block>
5555

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

@@ -75,15 +75,15 @@ export default {
7575
props: {
7676
7777
},
78-
/* ✓ GOOD, due to threshold is 5 */
79-
method: {
78+
/* ✗ BAD, due to threshold is 5 */
79+
mehtod: {
8080
8181
},
8282
/* ✓ GOOD, due to threshold is 5 */
8383
data: {
8484
8585
},
86-
/* ✗ BAD, due to we don't choose vue-router preset or add a custom option */
86+
/* ✓ GOOD, due to we don't choose vue-router preset or add a custom option */
8787
beforeRouteEnteR() {
8888
8989
}
@@ -97,7 +97,7 @@ export default {
9797

9898
```json
9999
{
100-
"vue/no-unsed-vars": ["error", {
100+
"vue/no-potential-component-option-typo": ["error", {
101101
"presets": ["vue"],
102102
"custom": [],
103103
"threshold": 1
@@ -111,11 +111,11 @@ export default {
111111

112112
## :rocket: Suggestion
113113

114-
- 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
114+
- 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
115115

116116
## :books: Further Reading
117117

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

120120
## :mag: Implementation
121121

0 commit comments

Comments
 (0)