Skip to content

Commit

Permalink
fix: add ES modules linting (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored Sep 29, 2021
1 parent b80a3d8 commit c61acbc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,16 @@ module.exports = {
'import/no-extraneous-dependencies': 0,
},
},
{
// ES modules
files: ['*.mjs'],
parserOptions: {
sourceType: 'module',
},
rules: {
'import/extensions': [2, 'always'],
},
},
],
settings: {
react: {
Expand Down

0 comments on commit c61acbc

Please sign in to comment.