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

Skip to content

Commit 09d95b8

Browse files
committed
添加草稿 TypeScript 与 ESLint
1 parent 3395b8f commit 09d95b8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

drafts/eslint.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# TypeScript 与 ESLint
2+
3+
ESLint
4+
5+
运行 eslint 时报错 Cannot find module 'typescript-eslint-parser'
6+
7+
你运行的是全局的 eslint,需要运行 `./node_modules/.bin/eslint xxx.ts'
8+
9+
不支持某些 规则,比如 no-undef
10+
11+
有冲突的规则,比如 spaced-comment
12+
13+
14+
cannot read property type of null
15+
16+
react 规则不可用
17+
18+
19+
react/sort-comp type-annotations

0 commit comments

Comments
 (0)