Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update lint.md
应该是 ‘误写’ 而不是 ‘勿写’
  • Loading branch information
huihuipan authored Jun 19, 2019
commit 29ec6baba6a50b317a948856a9c7a37a4f73b8db
4 changes: 2 additions & 2 deletions engineering/lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ console.log(`My name is ${myName}`)

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

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