Skip to content

Commit

Permalink
feat(eslint): allow ts-expect-error for test files
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoBechtel committed Mar 23, 2024
1 parent e45979f commit 75f8c93
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions eslint/core.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,15 @@ module.exports = defineConfig({
require.resolve('./rules/typescript.cjs'),
],
},
{
files: ['*.test.ts?(x)', '*.spec.ts?(x)'],
rules: {
// ts-expect-error makes sense for tests
'@typescript-eslint/ban-ts-comment': [
'off',
{ 'ts-expect-error': 'off' },
],
},
},
],
});

0 comments on commit 75f8c93

Please sign in to comment.