This moves our eslint config in .eslint.js, which allows us to use conditionals in the config file itself, significantly simpliying rule creation. For small-scale differences, this seems to be the simplest solution.

This commit is contained in:
Ben Martinez-Bateman
2017-12-18 11:51:12 -08:00
parent ea2d4070aa
commit 789eec1a57
4 changed files with 48 additions and 59 deletions

View File

@@ -41,10 +41,7 @@ let webpackConfig = {
enforce: 'pre',
test: /\.js$/,
include: config.paths.assets,
loader: 'eslint-loader',
options: {
configFile: config.env.production ? config.paths.eslintProd : null,
},
use: 'eslint',
},
{
enforce: 'pre',