how-react-app

0.0.2 • Public • Published

how-react-app

无配置快速构建React应用。

eslint

yarn add --dev eslint eslint-config-how-react-app

添加文件 .eslintrc

{
  extends: 'how-react-app',
  rules: {
  }
}

package.json中添加命令:

{
  "scripts": {
    "lint": "eslint src"
  }
}

(可能需要修改代码目录名)

然后就可以使用命令 yarn lint 运行eslint来检测js代码。

Readme

Keywords

none

Package Sidebar

Install

npm i how-react-app

Weekly Downloads

6

Version

0.0.2

License

MIT

Unpacked Size

661 kB

Total Files

19

Last publish

Collaborators

  • bencode