/prReactJotai

react, Jotai, eslint settings, prettier settings, husky settings.

Primary LanguageTypeScript

create react app

with TypeScript command.

npx create-react-app my-app --template typescript

Create TS File.

If not TS.config file.

npx tsc --init

ESlint と prettier の導入の参考

参考の記事

Husky と lint-staged のインストール 参考

npm i --save-dev husky lint-staged

package.json に lint-staged を追加

Git Hook の有効化ディレクトリの作成

npx husky install

コミット前の hooks を作成

npx husky add .husky/pre-commit "npm lint-staged"

プッシュ前の hooks を作成

npx husky add .husky/pre-push "npm lint-staged"