mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 10:22:30 +02:00
chore: eslint & prettier nits
This commit is contained in:
parent
8f493605ad
commit
084063eabe
15 changed files with 152 additions and 142 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue