a photography portfolio
-
Install prettier and prettier plugins
yarn add -D prettier prettier-plugin-tailwindcss @trivago/prettier-plugin-sort-imports
-
Install eslint and eslint plugins
yarn add -D eslint typescript @typescript-eslint/parser eslint-config-prettier @typescript-eslint/eslint-plugin
-
Copy and paste the
./prettierrc.cjsand./eslintrc.jsonfrom this repo to your project root. -
Add
formatscript topackage.json{ "scripts": { "format": "prettier --write ." } } -
Check if the scripts work
yarn format yarn lint