chore: eslint & prettier nits

This commit is contained in:
endiliey 2018-08-11 01:33:24 +08:00
parent 8f493605ad
commit 084063eabe
15 changed files with 152 additions and 142 deletions

View file

@ -20,7 +20,7 @@ module.exports = function loadConfig(siteDir, deleteCache = true) {
];
const missingFields = requiredFields.filter(field => !config[field]);
if (missingFields && missingFields.length > 0) {
throw new Error(missingFields.join(', ') + ' are missing in siteConfig.js');
throw new Error(`${missingFields.join(', ')} are missing in siteConfig.js`);
}
return config;
};