mozilla / blurts-server

Mozilla Monitor arms you with tools to keep your personal information safe. Find out what hackers already know about you and learn how to stay a step ahead of them.

Home Page:https://monitor.mozilla.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prettier Formatting / Cleanup All TS/JS files

maxxcrawford opened this issue · comments

          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)

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",