Skip to content

Commit

Permalink
fix(index): missing braces
Browse files Browse the repository at this point in the history
  • Loading branch information
niieani committed Jul 14, 2016
1 parent b62cc2d commit e75a6ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export = function eslint({options = {}, exclude = null} = {}) {
return {
module: {
preLoaders: get(this, 'module.preLoaders', []).concat([
{ test: /\.jsx?$/, loader: 'eslint', exclude: exclude || this.metadata.root ? [path.join(this.metadata.root, 'node_modules')] : [] }
{ test: /\.jsx?$/, loader: 'eslint', exclude: exclude || (this.metadata.root ? [path.join(this.metadata.root, 'node_modules')] : []) }
])
},
eslint: options
Expand Down

0 comments on commit e75a6ef

Please sign in to comment.