Skip to content

Commit 0db0008

Browse files
committed
Change ESLint config to allow boolean coercion
1 parent 7d5f38f commit 0db0008

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

eslint.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@ export default [
4141
curly: ['error'],
4242
'dot-notation': ['error'],
4343
eqeqeq: ['error'],
44-
'no-implicit-coercion': ['error'],
44+
'no-implicit-coercion': ['error', { boolean: false }],
4545
'no-implicit-globals': ['error'],
4646
'no-loop-func': ['error'],
4747
'no-return-assign': ['error'],
4848
'no-template-curly-in-string': ['error'],
4949
'no-unneeded-ternary': ['error'],
5050
'no-unused-vars': ['error', { args: 'none' }],
51-
// 'no-unused-vars': ['none'],
5251
'no-useless-computed-key': ['error'],
5352
'no-useless-return': ['error'],
5453
'no-var': ['error'],

playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const config = {
2323
testDir: './test/e2e',
2424
timeout: 30 * 1000,
2525
workers: process.env.CI ? 1 : undefined, // No parallel tests on CI
26-
forbidOnly: Boolean(process.env.CI), // Fail on CI if test.only in source
26+
forbidOnly: !!process.env.CI, // Fail on CI if test.only in source
2727

2828
// Output
2929
outputDir: './_playwright-results/', // screenshots, videos, traces, etc.

0 commit comments

Comments
 (0)