-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from BoatsAreRockable/eslint
Add ESLint for JavaScript linting
- Loading branch information
Showing
7 changed files
with
31 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"rules": { | ||
"no-undef": "error", | ||
"no-unused-vars": ["error", {"varsIgnorePattern": "utils"}] | ||
}, | ||
"globals": { | ||
"utils": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
/* global nw */ | ||
module.exports = {}; | ||
module.exports = {}; | ||
|
||
(function() { | ||
"use strict"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
const utils = (function() { | ||
"use strict"; | ||
"use strict"; | ||
|
||
const win = nw.Window.get(); | ||
const win = nw.Window.get(); | ||
|
||
/** | ||
* Open a URL in the user's browser. | ||
* | ||
* @param {String} url - The URL to open. | ||
*/ | ||
function openURL(url) { | ||
nw.Shell.openExternal(url); | ||
} | ||
/** | ||
* Open a URL in the user's browser. | ||
* | ||
* @param {String} url - The URL to open. | ||
*/ | ||
function openURL(url) { | ||
nw.Shell.openExternal(url); | ||
} | ||
|
||
return { | ||
openURL: openURL | ||
}; | ||
return { | ||
openURL: openURL | ||
}; | ||
}()); |