When running linting or formatting commands, always use the fix/auto-fix variants:
- Use
yarn lint:fixinstead ofyarn lint - Use
yarn eslint:fixinstead ofyarn eslint - Use
yarn prettier:fixinstead ofyarn prettier - Use
yarn formatoryarn format:*(these typically auto-fix) - Use
npx eslint --fixinstead ofnpx eslint - Use
npx prettier --writeinstead ofnpx prettier --check