- react 16.12.0
- react-router
- redux,redux-thunk
- hooks,typescript
- antd v4,sass
- lodash,moment,uuid,js-cookie
- suspense,lazy 懒加载
- yp-rider, axios, elastic
- antd 主题切换
- less, dayjs
$ npm i
$ npm start
$ npm run sit // 切换sit环境启动
$ npm run build // 打包
$ npm run lint // eslint检查
https://github.com/AlloyTeam/eslint-config-alloy/blob/master/README.zh-CN.md
以下提示:
- The plugin name is spelled incorrectly in an ESLint configuration file (e.g. .eslintrc).
- If ESLint is installed globally, then make sure '@typescript-eslint/eslint-plugin' is installed globally as well.
- If ESLint is installed locally, then '@typescript-eslint/eslint-plugin' isn't installed correctly.
解决:
- eslint rule 添加相关 rules
- 或者 config-overrides disableEsLint