From 1c3e58d9b249acf6ec47351c0be7134d3c4f8f1e Mon Sep 17 00:00:00 2001 From: literat Date: Fri, 16 Aug 2024 12:52:08 +0200 Subject: [PATCH] Fix(eslint-config-base): Allow `mjs` and `cjs` extension for ESlint config --- packages/eslint-config-base/rules/imports.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/eslint-config-base/rules/imports.js b/packages/eslint-config-base/rules/imports.js index 7b7bc21..70c3077 100644 --- a/packages/eslint-config-base/rules/imports.js +++ b/packages/eslint-config-base/rules/imports.js @@ -43,12 +43,12 @@ module.exports = { '**/gulpfile.{js,ts}', // gulp config '**/gulpfile.*.{js,ts}', // gulp config '**/Gruntfile{,.js}', // grunt config - '**/.eslintrc.js', // eslint config + '**/.eslintrc.{,m,c}js', // eslint config '**/.prettierrc.js', // prettier config '**/*.config.{js,ts}', // other config '**/*.config.*.js,ts}', // other config '**/*.conf.{js,ts}', // other conf - '**/*.conf.*.js,ts}', // other conf + '**/*.conf.*.{js,ts}', // other conf ], optionalDependencies: false, },