-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously we used the `makeFormatRule` on CI, which would format all files regardless instead of reporting errors when that file was not formatted correctly. This commit adds a `--ci` command line argument to `./configure.mjs` that reports formatting errors instead of attempting to fix them. Additionally we (in a slightly more convoluted manner than I would like) fix the `TODO` on checking that the top-level `package.json` is formatted correctly. One nice benefit of the `--ci` change is increased performance. When we format our files in-place we do not run `npm ci` on any of the plugins until we have first formatted their `package.json` - which is blocked by installing `biome` at the top level. With `--ci` we have the format check as a validation step so we can run `npm ci` in parallel across all plugins immediately and then run the validation only when `biome` is installed at the root. This saves about 5s locally since `npm ci` is relatively slow.
- Loading branch information
1 parent
b2acec2
commit 5d21aaf
Showing
4 changed files
with
43 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters