From e28861a247de22fbbcbd5c3dd561eb638176786d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=98=8E=E5=81=A5?= Date: Tue, 11 Apr 2023 15:50:52 +0800 Subject: [PATCH] fix(basic): allow require imports in js file (#169) --- packages/eslint-config-basic/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/eslint-config-basic/index.js b/packages/eslint-config-basic/index.js index b70f651..ba09b1c 100644 --- a/packages/eslint-config-basic/index.js +++ b/packages/eslint-config-basic/index.js @@ -154,9 +154,10 @@ module.exports = { }, }, { - files: ['*.js', '*.cjs'], + files: ['*.js', '*.cjs', '*.jsx'], rules: { '@typescript-eslint/no-var-requires': 'off', + '@typescript-eslint/no-require-imports': 'off', }, }, {