Skip to content

Commit

Permalink
BREAKING CHANGE: Always require file extension for imports
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Apr 12, 2021
1 parent 8d59779 commit 23dd94b
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,7 @@ module.exports = {
require.resolve('./rules/es6.js'),
],
rules: {
'import/extensions': [
'error',
'always',
{
js: 'never',
mjs: 'never',
jsx: 'never',
vue: 'never',
},
],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.vue', '.mjs', '.jsx'],
},
},
'import/extensions': ['error', 'always'],
},
parser: 'babel-eslint',
env: {
Expand Down

0 comments on commit 23dd94b

Please sign in to comment.