From 2e07691eebc3d74bf0c9d8b14cedc7ef7c89fbfb Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sat, 4 Dec 2021 23:56:37 +0800 Subject: [PATCH] feat: rules for tests --- packages/basic/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/basic/index.js b/packages/basic/index.js index 5086fd1..d20622d 100644 --- a/packages/basic/index.js +++ b/packages/basic/index.js @@ -93,6 +93,12 @@ module.exports = { 'no-console': 'off', }, }, + { + files: ['*.test.ts', '*.test.js', '*.spec.ts', '*.spec.js'], + rules: { + 'no-unused-expressions': 'off', + }, + }, ], rules: { // import