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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user