chore(webpack) lint

This commit is contained in:
coderaiser 2017-02-15 10:38:51 +02:00
parent 56d92f5c93
commit 210f49cb4a
2 changed files with 9 additions and 9 deletions

View file

@ -56,7 +56,7 @@
"jshint": "jshint bin client server",
"jscs": "jscs --esnext $npm_package_config_dirs",
"jshint:client": "jshint --config .es5/.jshintrc $npm_package_config_dirs_dirs_legacy --exclude bin/release.js",
"eslint:client": "eslint --rule 'no-console:0' --env browser client",
"eslint:client": "eslint --rule 'no-console:0' --env browser client webpack.config.js",
"fix:eslint": "redrun eslint:client -- --fix",
"test": "tape 'test/**/*.js'",
"spell": "yaspeller .",

View file

@ -1,6 +1,6 @@
const path = require('path');
const webpack = require('webpack');
const {optimize} = webpack
const {optimize} = webpack;
const {UglifyJsPlugin} = optimize;
const dir = './client';
@ -53,14 +53,14 @@ module.exports = {
plugins,
module: {
loaders: [{
test: /\.js$/,
exclude: /(node_)?modules/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
test: /\.js$/,
exclude: /(node_)?modules/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
]
}
};