eslint-config-blued-typescript
主要文档目录:eslint-config-blued
基于React进行的规则增强,只需将上述文档中blued
修改为blued-typescript
即可。
包含安装步骤以及
extends
的设置
npx install-peerdeps --dev eslint-config-blued-typescript
extends: blued-typescript
注意事项
如果同时使用react
和typeScript
,必须要保证在extends
中typescript
在react
的下边:
因为parser是会覆盖的,而不是共存,ts-parser相对于typescript比babel的支持度更高一些
exnteds: - blued-react - blued-typescript/react # 指定React版本,会完全继承Typescript的所有规则,并覆盖一些React规则