解决相对路径问题
ts.config.json
"baseUrl": "./src",
prettier
yarn add --dev --exact prettier
自动格式化
npx mrm lint -staged
"lint-staged": {
"*.{js,css,md,ts,tsx}": "prettier --write"
}
yarn add eslint-config-prettier
"eslintConfig": {
"rules": {
"@typescript-eslint/no-unused-vars": "off"
},
"extends": [
"react-app",
"react-app/jest",
"prettier"
]
},
commitline
标签:jira,react,--,app,笔记,学习,prettier,yarn From: https://www.cnblogs.com/yao-655442/p/16760362.html