Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
chore: delete linting for no-non-null-assertion in tests (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT authored Oct 8, 2023
1 parent a5e4878 commit 0571f30
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
1 change: 0 additions & 1 deletion src/async/deserializeAsync.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import { expect, test, vitest } from "vitest";

import {
Expand Down
1 change: 0 additions & 1 deletion src/async/serializeAsync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(`
Expand Down

0 comments on commit 0571f30

Please sign in to comment.