一、问题
react typescript项目下执行eslint --init
后报错:
1 2 |
Line 11:16: `code` must be placed on a new line react/jsx-one-expression-per-line ` must be placed on a new line react/jsx-one-expression-per-line |
二、解决
在rules加入:
1 |
"react/jsx-one-expression-per-line": "off" |
参考: