From 1f54518320b46fd1047e8943348a72e87ccbae1a Mon Sep 17 00:00:00 2001 From: Danny Kim Date: Sat, 17 Oct 2026 18:46:52 +0900 Subject: [PATCH] Match Deno size limits --- scripts/project-lint.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/scripts/project-lint.ts b/scripts/project-lint.ts index 13da199..393cc6d 100644 --- a/scripts/project-lint.ts +++ b/scripts/project-lint.ts @@ -219,6 +219,30 @@ const rules: DummyRuleMap = { "project/no-disable-comments": "error", "project/no-asset-imports": "error", "unicorn/no-abusive-eslint-disable": "error", + // Size and complexity limits match Deno's: this repo's `deno lint` ran the + // `recommended` set with no config file, so no size or complexity rule + // applied and none applies here. Each Oxlint limit rule, from a category or + // not, is off: + // - `complexity`: Deno had no `max-complexity`. + // - `max-lines`: Deno had no `max-file-lines`. + // - `max-params`: Deno had no `max-params`. + // - `id-length`: Deno had no `max-identifier-length`. + // - `no-nested-ternary`: Deno had no `max-nest-ternaries`. + // - `max-lines-per-function`, `max-classes-per-file`, `max-depth`, + // `max-nested-callbacks`, `max-statements`, `import/max-dependencies`, + // `unicorn/max-nested-calls`: Deno had none of these. + complexity: "off", + "max-lines": "off", + "max-params": "off", + "id-length": "off", + "no-nested-ternary": "off", + "max-lines-per-function": "off", + "max-classes-per-file": "off", + "max-depth": "off", + "max-nested-callbacks": "off", + "max-statements": "off", + "import/max-dependencies": "off", + "unicorn/max-nested-calls": "off", // Pedantic, but Node's and the web's own types (`Response`, `Stats`, // `RequestInit`) are mutable, so no parameter of theirs can pass; the // explicit-types template and the app repos turn it off too.