Skip to content

Commit

Permalink
chore: ensure all eslint overrides are in config file
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Nov 24, 2022
1 parent 29d5151 commit e19f58a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ const config = {
rules: {
'@typescript-eslint/ban-types': 0
}
},
{
files: ['src/types/is-tuple.ts'],
rules: {
'@typescript-eslint/no-unused-vars': 0
}
}
]
}
Expand Down
2 changes: 0 additions & 2 deletions src/types/is-tuple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*
* @template T - Value type
*/
/* eslint-disable @typescript-eslint/no-unused-vars */
type IsTuple<T> = T extends [infer A]
? T
: T extends [infer A, infer B]
Expand All @@ -22,6 +21,5 @@ type IsTuple<T> = T extends [infer A]
: T extends [infer A, infer B, infer C, infer D, infer E]
? T
: never
/* eslint-enable @typescript-eslint/no-unused-vars */

export { type IsTuple as default }

0 comments on commit e19f58a

Please sign in to comment.