Added JSHint and JSXHint for linting the code.

This commit is contained in:
Mario Basic
2015-06-18 13:39:47 +02:00
parent 5788f0755d
commit 4c968263f7
27 changed files with 35521 additions and 127 deletions

View File

@@ -10,7 +10,7 @@ var in_array = require('./in_array');
*
* @param state
*/
function changeExtensionState(state){
function changeExtensionState(state) {
if (! in_array(state, config.states)) {
throw new Error('Not a valid state!');
}
@@ -31,4 +31,4 @@ function changeExtensionState(state){
}
}
export default changeExtensionState;
module.exports = changeExtensionState;