Skip to content

Commit

Permalink
feat: Recognize *.mjs files as ESM modules
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Jun 22, 2023
1 parent 55bd50d commit f2c0a15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ module.exports = {
'yoda': 'error',
},
overrides: [
{
files: ['**/*.mjs'],
parserOptions: { sourceType: 'module' },
},
{
files: ['**/*.test.js', '**/test/**'],
env: { mocha: true, jest: true },
Expand Down

0 comments on commit f2c0a15

Please sign in to comment.