From 9b7dec96e0b5016bd2db1ba6d6617a6c878db059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Mon, 21 Sep 2026 09:56:39 +0000 Subject: [PATCH] :wrench: Move test lint disables to oxlint config The no-floating-promises header was repeated at the top of every test file. Centralize it, and the no-null suppression the new null/undefined cases need, in the **/*.test.ts override. --- .oxlintrc.json | 4 +++- src/primitive.test.ts | 1 - src/util/__tests__/lsp-completion.test.ts | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.oxlintrc.json b/.oxlintrc.json index e0bae8b..31a9152 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -34,7 +34,9 @@ "no-unused-expressions": "off", "no-empty-file": "off", "import/no-nodejs-modules": "off", - "eslint/no-magic-numbers": "off" + "eslint/no-magic-numbers": "off", + "unicorn/no-null": "off", + "typescript/no-floating-promises": "off" } }, { diff --git a/src/primitive.test.ts b/src/primitive.test.ts index 4ccfc12..7045094 100644 --- a/src/primitive.test.ts +++ b/src/primitive.test.ts @@ -1,4 +1,3 @@ -/* oxlint-disable typescript/no-floating-promises -- expectTypeOf() is a sync type-assertion library that the type-aware linter misidentifies as a promise */ import { strict as assert } from "node:assert"; import path from "node:path"; import { test } from "node:test"; diff --git a/src/util/__tests__/lsp-completion.test.ts b/src/util/__tests__/lsp-completion.test.ts index c02f74e..f632a53 100644 --- a/src/util/__tests__/lsp-completion.test.ts +++ b/src/util/__tests__/lsp-completion.test.ts @@ -1,4 +1,3 @@ -/* oxlint-disable typescript/no-floating-promises -- expectTypeOf() is a sync type-assertion library that the type-aware linter misidentifies as a promise */ import { strict as assert } from "node:assert"; import path from "node:path"; import { test } from "node:test";