From e75a6ef5e74c6f6cecd65320956f03d95ed3a471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bazyli=20Brzo=CC=81ska?= Date: Thu, 14 Jul 2016 12:19:57 +0200 Subject: [PATCH] fix(index): missing braces fixes https://github.com/easy-webpack/config-json/issues/1 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b8b2e61..bde88d6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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