React create react app - izudon/izudon.github.io GitHub Wiki
yarn で create-react-app
$ yarn create react-app my-app
eslint を入れる
- npm インストール
$ yarn add --dev eslint-
$ yarn run eslint src/
-
package.jsonに追記"scripts": { : "lint": "eslint src/" }-
$ yarn lint
-
Prettier を入れる
- npm インストール
$ yarn add --dev prettier-
$ yarn run prettier --write src/
-
.prettierrcに設定{ "semi": true, "trailingComma": none, "singleQuote": false, "printWidth": 80 }package.jsonに追記"scripts": { : "prettier": "prettier --write src/" }-
$ yarn prettier
-