中台代码规范
依赖库
- Eslint
- React
- Prittier
- Typescript
安装
-
npm i @junyy/eslint-config-react-prittier-ts --dev
or yarn add @junyy/eslint-config-react-prittier-ts -D
使用 yarn 如果出现错误的话 需要补充安装
yarn add eslint-plugin-prettier@latest -D
配置
- 在
.eslintrc.js
中加入 :
module.exports = {
"extends": ["@junyy/eslint-config-react-prittier-ts"]
}