react-typescript: `code` must be placed on a new line

一、问题

react typescript项目下执行eslint --init后报错:

二、解决

在rules加入:

 

参考:

扫码领红包

公众号

头条号