From 63643999ab1b5199fc308db941e477800eec2b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Thu, 11 Jun 2026 13:25:47 +0200 Subject: [PATCH] chore: lint raw child process imports --- .oxlintrc.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.oxlintrc.json b/.oxlintrc.json index 26523a87e..7099269fb 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -21,5 +21,29 @@ "typescript/no-var-requires": "error", "import/no-duplicates": "error" }, + "overrides": [ + { + "files": ["src/**/*.ts"], + "rules": { + "eslint/no-restricted-imports": [ + "error", + { + "paths": [ + { + "name": "node:child_process", + "message": "Use process helpers from src/utils/exec.ts instead of importing node:child_process directly." + } + ] + } + ] + } + }, + { + "files": ["src/utils/exec.ts", "src/**/*.test.ts", "src/**/__tests__/**/*.ts"], + "rules": { + "eslint/no-restricted-imports": "off" + } + } + ], "ignorePatterns": ["dist/**", "node_modules/**"] }