From 34e59876bdd1be3f4f2ec4e55782df66f31c335b Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Thu, 30 Jun 2016 23:21:58 -0700 Subject: [PATCH] Fixed eslint settings --- .eslintrc | 10 +++++++++- package.json | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 2c168843..4b3b40eb 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,14 @@ "rules": { "arrow-body-style":[0, "as-needed"], // fix `this` shortcut on ES6 classes "react/jsx-no-bind": 0, // Makes difficult to pass args to prop functions + "react/jsx-curly-spacing": [2, "always"], // Spaces inside curlies "no-else-return": 0, + }, + "settings" : { + "import/resolver": { + "webpack": { + "config": "webpack.config.js" + } + } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index f20e7b37..b64f1e4d 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,9 @@ "emoji-name-map": "1.1.2", "eslint": "2.13.1", "eslint-config-airbnb": "9.0.1", + "eslint-import-resolver-webpack": "^0.3.1", + "eslint-plugin-import": "^1.9.2", + "eslint-plugin-jsx-a11y": "^1.5.3", "eslint-plugin-react": "5.2.2", "exports-loader": "0.6.3", "extract-text-webpack-plugin": "1.0.1",