mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
finish linting client
This commit is contained in:
@@ -8,7 +8,7 @@ const pkg = require('./package.json');
|
||||
const configFile = path.join(path.resolve(__dirname, '../../config.json'));
|
||||
|
||||
// TODO abstract from server
|
||||
setupNconf(configFile);
|
||||
setupNconf(configFile, nconf);
|
||||
|
||||
const DEV_BASE_URL = nconf.get('BASE_URL');
|
||||
|
||||
@@ -100,6 +100,16 @@ module.exports = {
|
||||
{ convertPathData: { noSpaceAfterFlags: false } },
|
||||
],
|
||||
});
|
||||
|
||||
// Disable eslint warnings when running the server
|
||||
config.module
|
||||
.rule('eslint')
|
||||
.use('eslint-loader')
|
||||
.loader('eslint-loader')
|
||||
.tap(options => {
|
||||
options.quiet = true;
|
||||
return options;
|
||||
});
|
||||
},
|
||||
|
||||
devServer: {
|
||||
|
||||
Reference in New Issue
Block a user