From efbde990518afb4617534724295e671f915943f7 Mon Sep 17 00:00:00 2001 From: Plusb Preco Date: Mon, 7 Nov 2016 11:46:39 +0900 Subject: [PATCH] Disable `import/no-named-default` rule Until issue has been fixed: https://github.com/benmosher/eslint-plugin-import/issues/653 --- package.json | 4 ++-- rules/import.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2088dd5..d9e8d5a 100644 --- a/package.json +++ b/package.json @@ -35,13 +35,13 @@ "ava": "^0.16.0", "babel-eslint": "^7.1.0", "eslint": "^3.9.1", - "eslint-plugin-import": "^2.1.0", + "eslint-plugin-import": "^2.0.1", "eslint-plugin-react": "^6.5.0", "is-plain-obj": "^1.1.0" }, "peerDependencies": { "babel-eslint": "^7.1.0", "eslint": "^3.9.1", - "eslint-plugin-import": "^2.1.0" + "eslint-plugin-import": "^2.0.1" } } diff --git a/rules/import.js b/rules/import.js index 088bb34..0af803b 100644 --- a/rules/import.js +++ b/rules/import.js @@ -54,6 +54,7 @@ module.exports = { 'import/prefer-default-export': 'error', 'import/max-dependencies': 'off', 'import/no-unassigned-import': 'off', - 'import/no-named-default': 'error', + // disabled until issue has been fixed: https://github.com/benmosher/eslint-plugin-import/issues/653 + // 'import/no-named-default': 'error', }, };