diff --git a/frontend/apps/docs/app/docs/sitemap.ts b/frontend/apps/docs/app/docs/sitemap.ts index f2a44d512..b4ff1dd56 100644 --- a/frontend/apps/docs/app/docs/sitemap.ts +++ b/frontend/apps/docs/app/docs/sitemap.ts @@ -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' diff --git a/frontend/apps/erd-web/next.config.ts b/frontend/apps/erd-web/next.config.ts index 0e467249e..208f9a8ab 100644 --- a/frontend/apps/erd-web/next.config.ts +++ b/frontend/apps/erd-web/next.config.ts @@ -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' diff --git a/frontend/packages/cli/biome.jsonc b/frontend/packages/cli/biome.jsonc index 1b058c040..b00a290f7 100644 --- a/frontend/packages/cli/biome.jsonc +++ b/frontend/packages/cli/biome.jsonc @@ -13,9 +13,7 @@ } } } - }, - // Due to the unavoidable use of Node.js modules in server-side code. - "noNodejsModules": "off" + } } } } diff --git a/frontend/packages/configs/biome.jsonc b/frontend/packages/configs/biome.jsonc index 3a7dd4d0c..a6698c493 100644 --- a/frontend/packages/configs/biome.jsonc +++ b/frontend/packages/configs/biome.jsonc @@ -18,7 +18,6 @@ "useImportRestrictions": "error" }, "correctness": { - "noNodejsModules": "error", "noUndeclaredDependencies": "error", "noUnusedVariables": "error", "noUndeclaredVariables": "error" diff --git a/frontend/packages/db-structure/biome.jsonc b/frontend/packages/db-structure/biome.jsonc index 3336aa1d8..b67ed2f65 100644 --- a/frontend/packages/db-structure/biome.jsonc +++ b/frontend/packages/db-structure/biome.jsonc @@ -8,6 +8,7 @@ "linter": { "rules": { "correctness": { + "noNodejsModules": "error", "useImportExtensions": { "level": "error", "fix": "safe", diff --git a/frontend/packages/erd-core/biome.jsonc b/frontend/packages/erd-core/biome.jsonc index e6843d979..b4e50fc72 100644 --- a/frontend/packages/erd-core/biome.jsonc +++ b/frontend/packages/erd-core/biome.jsonc @@ -1,3 +1,10 @@ { - "extends": ["../../packages/configs/biome.jsonc"] + "extends": ["../../packages/configs/biome.jsonc"], + "linter": { + "rules": { + "correctness": { + "noNodejsModules": "error" + } + } + } } diff --git a/frontend/packages/figma-to-css-variables/biome.jsonc b/frontend/packages/figma-to-css-variables/biome.jsonc index 364f0a64f..e6843d979 100644 --- a/frontend/packages/figma-to-css-variables/biome.jsonc +++ b/frontend/packages/figma-to-css-variables/biome.jsonc @@ -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"] }