Skip to content

Commit eaa0aed

Browse files
committed
Fix(eslint-config-base): Allow mjs and cjs extension for all configs
1 parent 666ae08 commit eaa0aed

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/eslint-config-base/rules/imports.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ module.exports = {
3939
'test.{js,jsx,ts,tsx}', // repos with a single test file
4040
'test-*.{js,jsx,ts,tsx}', // repos with multiple top-level test files
4141
'**/*{.,_}{test,spec}.{js,jsx,ts,tsx}', // tests where the extension or filename suffix denotes that it is a test
42-
'**/jest.setup.{js,ts}', // jest setup
43-
'**/gulpfile.{js,ts}', // gulp config
44-
'**/gulpfile.*.{js,ts}', // gulp config
42+
'**/jest.setup.{,m,c}{j,t}s', // jest setup
43+
'**/gulpfile.{,m,c}{j,t}s', // gulp config
44+
'**/gulpfile.*.{,m,c}{j,t}s', // gulp config
4545
'**/Gruntfile{,.js}', // grunt config
4646
'**/.eslintrc.{,m,c}js', // eslint config
4747
'**/.prettierrc.js', // prettier config
48-
'**/*.config.{js,ts}', // other config
49-
'**/*.config.*.js,ts}', // other config
50-
'**/*.conf.{js,ts}', // other conf
51-
'**/*.conf.*.{js,ts}', // other conf
48+
'**/*.config.{,m,c}{j,t}s', // other config
49+
'**/*.config.*.{,m,c}{j,t}s', // other config
50+
'**/*.conf.{,m,c}{j,t}s', // other conf
51+
'**/*.conf.*.{,m,c}{j,t}s', // other conf
5252
],
5353
optionalDependencies: false,
5454
},

0 commit comments

Comments
 (0)