From 61a7f99e426ca907d713ac710d74b3911096d24e Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Wed, 6 Dec 2017 16:19:48 +0000 Subject: [PATCH] Make import/extensions eslint rule an exception in ES6 files [MAILPOET-1139] --- .eslintrc.es6.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.es6.json b/.eslintrc.es6.json index 2433bc0538..d84e7cb77c 100644 --- a/.eslintrc.es6.json +++ b/.eslintrc.es6.json @@ -17,6 +17,7 @@ // Exceptions "comma-dangle": ["error", "always-multiline"], "no-script-url": 0, + "import/extensions": ["error", "ignorePackages"], // without this rule we would have to import jQuery like this: `import jQuery from 'jquery'/index.js;` // Temporary "import/no-amd": 0, "react/no-multi-comp": 0, @@ -40,7 +41,6 @@ "jsx-a11y/alt-text": 0, "func-names": 0, "object-shorthand": 0, - "import/extensions": 0, "import/no-extraneous-dependencies": 0, "camelcase": 0, "eqeqeq": 0,