解决相对路径问题
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