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

Skip to content

Commit 05f5e31

Browse files
authored
Merge pull request xcatliu#113 from heming6666/fix-engineering-lint
fix(engineering/lint.md): modify let to var
2 parents df0d1ec + a0a0bb8 commit 05f5e31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engineering/lint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ console.log(`My name is ${myName.toStrng()}`);
4040
分别用 tsc 编译和 eslint 检查后,报错信息如下:
4141

4242
```ts
43-
let myName = 'Tom';
43+
var myName = 'Tom';
4444
// eslint 报错信息:
4545
// Unexpected var, use let or const instead.eslint(no-var)
4646

0 commit comments

Comments
 (0)