Skip to content
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.

Commit

Permalink
Fake electron package and re-enable eslint-plugin-import
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed May 26, 2016
1 parent 87d10f8 commit 9935f8f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"__APP__": true,
"__DEV__": true
},
"rules": {
"import/no-unresolved": 0
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "support/electron_modules"]
}
}
}
}
3 changes: 3 additions & 0 deletions support/electron_modules/electron/electron.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This fakes a package named 'electron' to silence errors
// coming from eslint-plugin-import
module.exports = {};
4 changes: 4 additions & 0 deletions support/electron_modules/electron/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"private": true,
"main": "electron.js"
}

0 comments on commit 9935f8f

Please sign in to comment.