Skip to content

Commit 5c59943

Browse files
committed
feat: turn off the no-unused-expressions for *.test.js files
1 parent 4eadf31 commit 5c59943

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/configs/javascript.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,5 +261,11 @@ export async function javascript(
261261
'no-console': 'off',
262262
},
263263
},
264+
{
265+
files: ['**/*.{test,spec}.js?(x)'],
266+
rules: {
267+
'no-unused-expressions': 'off',
268+
},
269+
},
264270
]
265271
}

0 commit comments

Comments
 (0)