how-react-app
无配置快速构建React应用。
eslint
yarn add --dev eslint eslint-config-how-react-app
添加文件 .eslintrc
:
extends: 'how-react-app' rules:
在package.json
中添加命令:
(可能需要修改代码目录名)
然后就可以使用命令 yarn lint
运行eslint来检测js代码。
无配置快速构建React应用。
yarn add --dev eslint eslint-config-how-react-app
添加文件 .eslintrc
:
extends: 'how-react-app' rules:
在package.json
中添加命令:
(可能需要修改代码目录名)
然后就可以使用命令 yarn lint
运行eslint来检测js代码。
npm i how-react-app
2
0.0.2
MIT
661 kB
19