Skip to content

Commit

Permalink
chore: enable no-unnecessary-boolean-literal-compare (#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Mar 3, 2024
1 parent f38f4d1 commit b11b1f4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs
Expand Up @@ -89,7 +89,6 @@ module.exports = defineConfig({
'@typescript-eslint/no-implied-eval': 'off',
'@typescript-eslint/no-redundant-type-constituents': 'off',
'@typescript-eslint/no-throw-literal': 'off',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
Expand Down
2 changes: 1 addition & 1 deletion test/ts/customRunnerDBClient.ts
Expand Up @@ -7,7 +7,7 @@ async function start() {
await dbClient.connect();
const result = await run({ dbClient, count: Infinity });
// dbClient.end()
process.exit(result === true ? 0 : 1);
process.exit(result ? 0 : 1);
}

start();
2 changes: 1 addition & 1 deletion test/ts/customRunnerDBUrl.ts
Expand Up @@ -6,7 +6,7 @@ async function start() {
databaseUrl: String(process.env.DATABASE_URL),
count: Infinity,
});
process.exit(result === true ? 0 : 1);
process.exit(result ? 0 : 1);
}

start();
2 changes: 1 addition & 1 deletion test/ts/customRunnerUndefCount.ts
Expand Up @@ -7,7 +7,7 @@ async function start() {
expectedUpLength: 2,
expectedDownLength: 1,
});
process.exit(result === true ? 0 : 1);
process.exit(result ? 0 : 1);
}

start();

0 comments on commit b11b1f4

Please sign in to comment.