From 0571f302a2e9acea530361394f24340d8eb9fdee Mon Sep 17 00:00:00 2001 From: Alex / KATT Date: Sun, 8 Oct 2023 20:18:26 +0200 Subject: [PATCH] chore: delete linting for no-non-null-assertion in tests (#57) --- .eslintrc.cjs | 1 + src/async/deserializeAsync.test.ts | 1 - src/async/serializeAsync.test.ts | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 7e049c95..e7f56074 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -83,6 +83,7 @@ module.exports = { files: "**/*.test.ts", rules: { // These on-by-default rules aren't useful in test files. + "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-unsafe-call": "off", }, diff --git a/src/async/deserializeAsync.test.ts b/src/async/deserializeAsync.test.ts index 939223b7..eca5d930 100644 --- a/src/async/deserializeAsync.test.ts +++ b/src/async/deserializeAsync.test.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { expect, test, vitest } from "vitest"; import { diff --git a/src/async/serializeAsync.test.ts b/src/async/serializeAsync.test.ts index aaa354f0..d47a50c1 100644 --- a/src/async/serializeAsync.test.ts +++ b/src/async/serializeAsync.test.ts @@ -179,7 +179,6 @@ test("stringify async iterable + promise", async () => { buffer.push(value.trimEnd()); } - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const head: any = JSON.parse(buffer[1]!); expect(buffer).toMatchInlineSnapshot(`