diff --git a/Gruntfile.js b/Gruntfile.js index e9a803c..8b7fb23 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,4 +1,4 @@ -module.exports = function (grunt) { +module.exports = function(grunt) { require('load-grunt-config')(grunt) // load npm tasks grunt.loadNpmTasks('grunt-karma') diff --git a/src/logging.js b/src/logging.js index e07832d..8d59002 100644 --- a/src/logging.js +++ b/src/logging.js @@ -1,4 +1,4 @@ -/*eslint-disable no-console */ +/* eslint-disable no-console */ /** * Wraps a Reactor.react invocation in a console.group */ @@ -32,4 +32,4 @@ exports.dispatchEnd = function(state) { console.groupEnd() } } -/*eslint-enable no-console */ +/* eslint-enable no-console */ diff --git a/src/reactor.js b/src/reactor.js index 91fac49..c95de70 100644 --- a/src/reactor.js +++ b/src/reactor.js @@ -142,9 +142,9 @@ class Reactor { * @param {Store} store */ registerStore(id, store) { - /*eslint-disable no-console */ + /* eslint-disable no-console */ console.warn('Deprecation warning: `registerStore` will no longer be supported in 1.1, use `registerStores` instead') - /*eslint-enable no-console */ + /* eslint-enable no-console */ var stores = {} stores[id] = store this.registerStores(stores) @@ -156,9 +156,9 @@ class Reactor { registerStores(stores) { each(stores, (store, id) => { if (this.__stores.get(id)) { - /*eslint-disable no-console */ + /* eslint-disable no-console */ console.warn('Store already defined for id = ' + id) - /*eslint-enable no-console */ + /* eslint-enable no-console */ } var initialState = store.getInitialState() diff --git a/webpack.config.js b/webpack.config.js index 890a7a4..82340a6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,14 +1,14 @@ -var webpack = require('webpack'); +var webpack = require('webpack') var genFilename = function(isMin) { return [ './dist/nuclear', (isMin ? '.min' : ''), - '.js' - ].join(''); -}; + '.js', + ].join('') +} -var uglifyJsPlugin = new webpack.optimize.UglifyJsPlugin(); +var uglifyJsPlugin = new webpack.optimize.UglifyJsPlugin() module.exports = [ { @@ -20,8 +20,8 @@ module.exports = [ }, module: { loaders: [ - { test: /\.js$/, loader: 'jstransform-loader' } - ] + { test: /\.js$/, loader: 'jstransform-loader' }, + ], }, }, { @@ -33,9 +33,9 @@ module.exports = [ }, module: { loaders: [ - { test: /\.js$/, loader: 'jstransform-loader' } - ] + { test: /\.js$/, loader: 'jstransform-loader' }, + ], }, plugins: [uglifyJsPlugin], - } -]; + }, +]