Skip to content

Commit

Permalink
feat(eslint): enforce file extensions within the import path
Browse files Browse the repository at this point in the history
BREAKING CHANGE: import statements must specify the extension and will
now throw an error. The only exception is package imports.
  • Loading branch information
HendrikThePendric authored and varl committed Sep 20, 2021
1 parent 7603495 commit 8f38ad1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ module.exports = {
},
],
curly: ['error'],
'import/extensions': ['error', 'ignorePackages'],
},
}

0 comments on commit 8f38ad1

Please sign in to comment.