UNPKG
eslint-config-mts
Version:
latest (0.0.2)
0.0.2
0.0.1
MLT ESLint 规则
test.hulu.team/eslint/config/alloy
eslint-config-mts
/
test
/
typescript
/
prefer-ts-expect-error
/
.eslintrc.js
11 lines
(10 loc)
•
351 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
module
.
exports
= { rules: {
/** * 当需要忽略下一行的 ts 错误时,必须使用
@ts
-expect-error 而不是
@ts
-ignore *
@reason
使用
@ts
-expect-error 可以避免对不会报错的代码设置了
@ts
-ignore *
@TODO
TypeScript 3.9 发布后开启 */
'@typescript-eslint/prefer-ts-expect-error'
:
'off'
, }, };