From f45a0d9bd3d2eb23013e3f7fc01d646cacebff8b Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 29 Jan 2023 00:35:25 +0100 Subject: [PATCH] feat: allow require() in cjs --- packages/basic/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/basic/index.js b/packages/basic/index.js index 5373f1e..ea13190 100644 --- a/packages/basic/index.js +++ b/packages/basic/index.js @@ -142,7 +142,7 @@ module.exports = { }, }, { - files: ['*.js'], + files: ['*.js', '*.cjs'], rules: { '@typescript-eslint/no-var-requires': 'off', },