Skip to content

Commit

Permalink
Merge pull request #299 from akozhemiakin/fix-eslint-webpack
Browse files Browse the repository at this point in the history
Fix .eslintrc import/resolver settings
  • Loading branch information
chentsulin authored Aug 2, 2016
2 parents 4cd5119 + d78c8a1 commit fe4e552
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"consistent-return": 0,
"comma-dangle": 0,
"no-use-before-define": 0,
"import/no-unresolved": [2, { ignore: ['electron'] }],
"import/no-unresolved": [2, { "ignore": ["electron"] }],
"react/jsx-no-bind": 0,
"react/prefer-stateless-function": 0
},
Expand All @@ -19,6 +19,10 @@
"react"
],
"settings": {
"import/resolver": "webpack"
"import/resolver": {
"webpack": {
"config": "webpack.config.eslint.js"
}
}
}
}
3 changes: 3 additions & 0 deletions webpack.config.eslint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require('babel-register');

module.exports = require('./webpack.config.development');

0 comments on commit fe4e552

Please sign in to comment.