Skip to content

Commit 6a669cc

Browse files
committed
fix(eslint-config): off no-require-imports for cjs
1 parent f73ce4c commit 6a669cc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/eslint-config/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,12 @@ function factory({ ignores = [] }: FactoryOptions = {}) {
315315
'@typescript-eslint/consistent-type-imports': 'off',
316316
},
317317
},
318+
{
319+
files: ['**/*.{cjs,cts}'],
320+
rules: {
321+
'@typescript-eslint/no-require-imports': 'off',
322+
},
323+
},
318324
...jsoncPlugin.configs['flat/recommended-with-jsonc'],
319325
{
320326
files: ['**/*.{json,jsonc}'],

0 commit comments

Comments
 (0)