Skip to content

Commit

Permalink
👕 #347 以下のESLintエラーの対応
Browse files Browse the repository at this point in the history
src/utils/assertNever.ts
  1:1   error  Definition for rule '@typescript-eslint/no-unused-vars' was not found    @typescript-eslint/no-unused-vars
  2:29  error  'value' is defined but never used. Allowed unused args must match /^_/u  unused-imports/no-unused-vars
  • Loading branch information
keitakn committed Oct 10, 2024
1 parent d862f97 commit 1f69d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/assertNever.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// eslint-disable-next-line unused-imports/no-unused-vars
export function assertNever(value: never): never {
throw new Error('Unexpected value. Should have been never.');
}

Check warning on line 4 in src/utils/assertNever.ts

View check run for this annotation

Codecov / codecov/patch

src/utils/assertNever.ts#L4

Added line #L4 was not covered by tests

0 comments on commit 1f69d99

Please sign in to comment.