enforce file extension on import

This commit is contained in:
Timo Hocker 2020-04-08 11:38:19 +02:00
parent 6b79a1457f
commit 4a51ba5291

View File

@ -52,7 +52,11 @@ module.exports = {
'import/exports-last': 'error', 'import/exports-last': 'error',
'import/no-duplicates': 'error', 'import/no-duplicates': 'error',
'import/no-namespace': 'error', 'import/no-namespace': 'error',
'import/extensions': 'error', 'import/extensions': [
'error',
'ignorePackages',
{ js: 'never' }
],
'import/order': 'error', 'import/order': 'error',
'import/newline-after-import': 'error', 'import/newline-after-import': 'error',
'import/prefer-default-export': 'error', 'import/prefer-default-export': 'error',