lint設定
code:bash
yarn add -D eslint prettier @rinsuki/eslint-config @rinsuki/prettier-config
package.jsonに
code:json
"prettier": "@rinsuki/prettier-config",
"eslintConfig": {
"extends": "@rinsuki"
},
"scripts": {
"lint": "prettier --write && eslint src --ext .js,.ts,.tsx",
}
code:.prettierignore
.pnp.js
.yarn
node_modules
dist
まあ prettierignore は gitignore のコピペでもいいかも