Skip to content

Commit

Permalink
moves eslint ignore to line
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos committed Aug 21, 2024
1 parent 8e064ac commit 0fc9e7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/turbo-types/scripts/generate-schema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env node
/* eslint-disable @typescript-eslint/no-unsafe-assignment -- we're messing with TypeScript internals here */
/* eslint-disable @typescript-eslint/no-unsafe-call -- we're messing with TypeScript internals here */

import { writeFileSync } from "node:fs";
import { join } from "node:path";
Expand Down Expand Up @@ -35,6 +33,7 @@ const replaceJSDoc = (
jsDoc.tags.forEach((tag) => {
if (tag.tagName.text === "defaultValue") {
// @ts-expect-error TypeScript doesn't want us to be able to assign to a readonly value here
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call -- we're messing with TypeScript's internals here
tag.tagName.escapedText = tag.tagName.escapedText.replace(
"defaultValue",
"default"
Expand Down

0 comments on commit 0fc9e7a

Please sign in to comment.