mirror of
https://github.com/n8n-io/n8n.git
synced 2026-12-04 00:30:34 +00:00
build: Format the English locale file with Prettier instead of Biome (#45913)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dc60e03427
commit
e353cbfeed
4 files changed
+15
-3
No files matched your search
@@ -16,6 +16,8 @@ CHANGELOG.md
|
||||
**/*.ts
|
||||
**/*.js
|
||||
**/*.json
|
||||
# Over Biome's 1 MiB file size limit, so Prettier formats it
|
||||
!packages/frontend/@n8n/i18n/src/locales/en.json
|
||||
**/*.jsonc
|
||||
|
||||
# Auto-generated
|
||||
|
||||
+4
-1
@@ -23,7 +23,10 @@
|
||||
"packages/@n8n/hooks-api/api/**",
|
||||
"api/v*.d.ts",
|
||||
"**/benchmark/scripts/mock-api/**",
|
||||
"**/expectations/**"
|
||||
"**/expectations/**",
|
||||
// Over Biome's 1 MiB file size limit. Prettier formats it (see `.prettierignore`).
|
||||
// format:check runs inside the package, so its own `biome.jsonc` ignores it too.
|
||||
"packages/frontend/@n8n/i18n/src/locales/en.json"
|
||||
]
|
||||
},
|
||||
"formatter": {
|
||||
|
||||
+4
-1
@@ -30,7 +30,10 @@ pre-commit:
|
||||
- merge
|
||||
- rebase
|
||||
prettier_check:
|
||||
glob: 'packages/**/*.{vue,yml,md,css,scss}'
|
||||
glob:
|
||||
- 'packages/**/*.{vue,yml,md,css,scss}'
|
||||
# Biome ignores this file. See `.prettierignore`.
|
||||
- 'packages/frontend/@n8n/i18n/src/locales/en.json'
|
||||
run: pnpm prettier --write --ignore-unknown --no-error-on-unmatched-pattern {staged_files}
|
||||
stage_fixed: true
|
||||
skip:
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
{
|
||||
"$schema": "../../../../node_modules/@biomejs/biome/configuration_schema.json",
|
||||
"extends": ["../../../../biome.jsonc"]
|
||||
"extends": ["../../../../biome.jsonc"],
|
||||
"files": {
|
||||
// Over Biome's 1 MiB file size limit. Prettier formats it (see `.prettierignore`).
|
||||
"ignore": ["src/locales/en.json"]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user