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

Skip to content

Commit 29ec6ba

Browse files
authored
Update lint.md
应该是 ‘误写’ 而不是 ‘勿写’
1 parent 8bb2806 commit 29ec6ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engineering/lint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ console.log(`My name is ${myName}`)
5757

5858
| 存在的问题 | `tsc` 是否报错 | `eslint` 是否报错 | `tslint` 是否报错 |
5959
| --------- | ------------- | ---------------- | ----------------- |
60-
| `myName` 被勿写成了 `myNane` ||||
61-
| `toString` 被勿写成了 `toStrng` | ✅️ |||
60+
| `myName` 被误写成了 `myNane` ||||
61+
| `toString` 被误写成了 `toStrng` | ✅️ |||
6262
| 少了一个分号 ||||
6363

6464
上例中,由于 `eslint``tslint` 均无法识别 `myName` 存在哪些方法,所以对于拼写错误的 `toString` 没有检查出来。

0 commit comments

Comments
 (0)