Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(eslint-config-base): Allow mjs and cjs extension for all configs #189

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions packages/eslint-config-base/rules/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ module.exports = {
'test.{js,jsx,ts,tsx}', // repos with a single test file
'test-*.{js,jsx,ts,tsx}', // repos with multiple top-level test files
'**/*{.,_}{test,spec}.{js,jsx,ts,tsx}', // tests where the extension or filename suffix denotes that it is a test
'**/jest.setup.{js,ts}', // jest setup
'**/gulpfile.{js,ts}', // gulp config
'**/gulpfile.*.{js,ts}', // gulp config
'**/jest.setup.{,m,c}{j,t}s', // jest setup
'**/gulpfile.{,m,c}{j,t}s', // gulp config
'**/gulpfile.*.{,m,c}{j,t}s', // gulp config
'**/Gruntfile{,.js}', // grunt 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
'**/*.config.{,m,c}{j,t}s', // other config
'**/*.config.*.{,m,c}{j,t}s', // other config
'**/*.conf.{,m,c}{j,t}s', // other conf
'**/*.conf.*.{,m,c}{j,t}s', // other conf
],
optionalDependencies: false,
},
Expand Down
Loading