From 4a51ba529182d7e121e23c15a3da1bc07c2051e1 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 8 Apr 2020 11:38:19 +0200 Subject: [PATCH] enforce file extension on import --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 7ec9160..8d865fc 100644 --- a/index.js +++ b/index.js @@ -52,7 +52,11 @@ module.exports = { 'import/exports-last': 'error', 'import/no-duplicates': 'error', 'import/no-namespace': 'error', - 'import/extensions': 'error', + 'import/extensions': [ + 'error', + 'ignorePackages', + { js: 'never' } + ], 'import/order': 'error', 'import/newline-after-import': 'error', 'import/prefer-default-export': 'error',