Skip to content

Commit

Permalink
🔧 Adjust biome rulelint/correctness/noNodejsModules setting
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshinotsuyoshi committed Dec 27, 2024
1 parent 7e9b463 commit be1d12d
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 17 deletions.
2 changes: 0 additions & 2 deletions frontend/apps/docs/app/docs/sitemap.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// biome-ignore lint/correctness/noNodejsModules: This file is used to generate the sitemap and is executed on the server-side only, requiring Node.js modules.
import fs from 'node:fs'
// biome-ignore lint/correctness/noNodejsModules: This file is used to generate the sitemap and is executed on the server-side only, requiring Node.js modules.
import path from 'node:path'
import type { MetadataRoute } from 'next'

Expand Down
1 change: 0 additions & 1 deletion frontend/apps/erd-web/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// biome-ignore lint/correctness/noNodejsModules: This code is only run in the Node.js environment.
import { execSync } from 'node:child_process'
import type { NextConfig } from 'next'

Expand Down
4 changes: 1 addition & 3 deletions frontend/packages/cli/biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
}
}
}
},
// Due to the unavoidable use of Node.js modules in server-side code.
"noNodejsModules": "off"
}
}
}
}
Expand Down
1 change: 0 additions & 1 deletion frontend/packages/configs/biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"useImportRestrictions": "error"
},
"correctness": {
"noNodejsModules": "error",
"noUndeclaredDependencies": "error",
"noUnusedVariables": "error",
"noUndeclaredVariables": "error"
Expand Down
1 change: 1 addition & 0 deletions frontend/packages/db-structure/biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"linter": {
"rules": {
"correctness": {
"noNodejsModules": "error",
"useImportExtensions": {
"level": "error",
"fix": "safe",
Expand Down
9 changes: 8 additions & 1 deletion frontend/packages/erd-core/biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"extends": ["../../packages/configs/biome.jsonc"]
"extends": ["../../packages/configs/biome.jsonc"],
"linter": {
"rules": {
"correctness": {
"noNodejsModules": "error"
}
}
}
}
10 changes: 1 addition & 9 deletions frontend/packages/figma-to-css-variables/biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
{
"extends": ["../../packages/configs/biome.jsonc"],
"linter": {
"rules": {
"correctness": {
// Due to the unavoidable use of Node.js modules in server-side code.
"noNodejsModules": "off"
}
}
}
"extends": ["../../packages/configs/biome.jsonc"]
}

0 comments on commit be1d12d

Please sign in to comment.