Skip to content

Commit

Permalink
chore: enable @typescript-eslint/no-unused-vars rule
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Jun 13, 2024
1 parent f5d4467 commit 713e36f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 6 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ export default defineConfig([
process: 'readonly',
},
},
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{ varsIgnorePattern: '^_' },
],
},
},
{
plugins: { unicorn: eslintPluginUnicorn },
Expand All @@ -36,7 +42,6 @@ export default defineConfig([
{
// TODO: Must-have rules. Enable one-by-one
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-misused-promises': 'off',
Expand Down
2 changes: 0 additions & 2 deletions test/uncaught-exception-from-handler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { dirname, resolve } from 'node:path'
import { Tinypool } from 'tinypool'
import { fileURLToPath } from 'node:url'
import { once } from 'node:events'
const sleep = async (num: number) =>
await new Promise((res) => setTimeout(res, num))

const __dirname = dirname(fileURLToPath(import.meta.url))

Expand Down

0 comments on commit 713e36f

Please sign in to comment.