Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
soda-x committed Jan 7, 2016
1 parent 4b56199 commit dd24d16
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "eslint-config-airbnb/base",
"rules": {
"no-console": [0],
"space-before-function-paren": [2, "never"]
"space-before-function-paren": [2, "never"],
"max-len": [2, 120, 2]
}
}
3 changes: 2 additions & 1 deletion src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function getWebpackConfig(args) {
return webpackConfig;
}

export default function(args, callback) {
export default function(arg, callback) {
const args = arg;
args.cwd = args.cwd || process.cwd();

// Get config.
Expand Down
5 changes: 3 additions & 2 deletions src/getWebpackCommonConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ export default function getWebpackCommonConfig(args) {
const browser = pkg.browser || {};

const node = emptyBuildins.reduce((obj, name) => {
const prev = obj;
if (!(name in browser)) {
obj[name] = 'empty';
prev[name] = 'empty';
}
return obj;
return prev;
}, {});


Expand Down

0 comments on commit dd24d16

Please sign in to comment.