Skip to content

Commit

Permalink
dev(website): Add format-fast npm-run script that doesn't do eslint (
Browse files Browse the repository at this point in the history
…#1346)

The npm run format script takes about 30 seconds on my M1, 90% of it is eslint --fix which in my experience rarely changes anything.

This adds a script to just run prettier in 3 seconds.
  • Loading branch information
corneliusroemer committed Mar 12, 2024
1 parent 181b821 commit 751de01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"astro": "astro",
"check-format": "eslint \"src/**/*.{ts,tsx,astro}\" && prettier --ignore-path \"../.gitignore\" --check \"{src,tests}/**/*.{ts,tsx,json,astro}\"",
"format": "eslint \"src/**/*.{ts,tsx,astro}\" --fix && prettier --ignore-path \"../.gitignore\" --write \"{src,tests}/**/*.{ts,tsx,json,astro}\"",
"format-fast": "prettier --ignore-path \"../.gitignore\" --write \"{src,tests}/**/*.{ts,tsx,json,astro}\"",
"test": "vitest",
"e2e": "npx playwright test",
"e2e:headed": "npx playwright test --headed"
Expand Down

0 comments on commit 751de01

Please sign in to comment.