Skip to content

Commit c61acbc

Browse files
authored
fix: add ES modules linting (#309)
1 parent b80a3d8 commit c61acbc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.eslintrc.js

+10
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,16 @@ module.exports = {
299299
'import/no-extraneous-dependencies': 0,
300300
},
301301
},
302+
{
303+
// ES modules
304+
files: ['*.mjs'],
305+
parserOptions: {
306+
sourceType: 'module',
307+
},
308+
rules: {
309+
'import/extensions': [2, 'always'],
310+
},
311+
},
302312
],
303313
settings: {
304314
react: {

0 commit comments

Comments
 (0)