Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Mar 26, 2024
1 parent b338760 commit bdbc112
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
@@ -1,5 +1,6 @@
dist
src/tests/fixtures/**/*.ts
src/tests/integrationFixtures/**/*.ts
src/tests/codeActions/**/*.ts
website/build/*
website/**/*.grats.ts
3 changes: 2 additions & 1 deletion src/tsPlugin/initTsPlugin.ts
@@ -1,6 +1,7 @@
import type * as TS from "typescript/lib/tsserverlibrary";
import { extract } from "../Extractor";
import { FAKE_ERROR_CODE } from "../utils/DiagnosticError";
import { nullThrows } from "../utils/helpers";

// An experimental plugin for TypeScript that adds a new language service
// which reports diagnostics for the current file. Currently it only reports
Expand Down Expand Up @@ -91,7 +92,7 @@ export function initTsPlugin(modules: { typescript: typeof TS }) {
);

const fixes = relatedDiagnostics.map((err) => {
return err.fix!;
return nullThrows(err.fix);
});

return [...prior, ...fixes];
Expand Down

0 comments on commit bdbc112

Please sign in to comment.