From 1d1b065f5c684d1d7c23d6de4b95349cdbad6704 Mon Sep 17 00:00:00 2001 From: n4kz Date: Fri, 24 Mar 2017 22:32:57 +0300 Subject: [PATCH] Added eslint import plugin --- .eslintrc | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/.eslintrc b/.eslintrc index 50a0cf50..da65a9aa 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,11 +2,14 @@ 'parser': 'babel-eslint', 'plugins': [ + 'import', 'react', ], 'extends': [ 'eslint:recommended', + 'plugin:import/errors', + 'plugin:import/warnings', 'plugin:react/recommended', ], diff --git a/package.json b/package.json index 642c1fef..39f25f68 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "devDependencies": { "babel-eslint": "*", "eslint": "*", + "eslint-plugin-import": "*", "eslint-plugin-react": "*" },