0.0.2 • Published 6 years ago

how-react-app v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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代码。