Fix Biome lint error and lefthook configuration for TypeScript ESM files
@@ -31,7 +31,10 @@ export default defineWorkspace([
name: 'app-integration',
environment: 'node',
include: ['**/*.integ.ts'],
- setupFiles: ['./test/setup/migrate-mongo.ts', './test/setup/mongo/index.ts'],
+ setupFiles: [
+ './test/setup/migrate-mongo.ts',
+ './test/setup/mongo/index.ts',
+ ],
deps: {
// Transform inline modules (allows ESM in require context)
interopDefault: true,
@@ -5,6 +5,6 @@ pre-commit:
parallel: true
commands:
biome-format:
- glob: "*.{js,jsx,ts,tsx,json,jsonc}"
+ glob: "*.{js,jsx,ts,tsx,mts,cts,json,jsonc}"
run: pnpm biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}
stage_fixed: true