Prettier Formatting / Cleanup All TS/JS files
maxxcrawford opened this issue · comments
Maxx Crawford commented
Yeah, we agreed to switch to Prettier for formatting (it's more complete, and doesn't show up as warnings before it's been formatting), since we're creating many new files anyway. So TS files are formatted by Prettier, while existing files are left as-is.
When the migration is complete, we might still want to do a mega-formatting commit for the remaining files.
Originally posted by @Vinnl in #3049 (comment)
Vincent commented
And we'll want to update the lintstagedrc.js
:
- "*.{ts,tsx,jsx,scss}": "prettier --write",
- // While we're migrating to Next.js, regular .js and .css files are still
- // likely to be the non-Next.js app. Thus, we scope those to /src/app:
- "src/app/**/*.{ts,tsx,js,jsx,scss,css}": "prettier --write",
- "*.md": "prettier --write",
+ "*.{ts,tsx,js,jsx,scss,css,md}": "prettier --write",