mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(webpack) lint
This commit is contained in:
parent
56d92f5c93
commit
210f49cb4a
2 changed files with 9 additions and 9 deletions
|
|
@ -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 .",
|
||||
|
|
|
|||
|
|
@ -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']
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue