mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-15 18:17:35 +02:00
chore: eslint & prettier nits
This commit is contained in:
parent
a4cc782858
commit
15ce4a95e2
4 changed files with 68 additions and 69 deletions
|
@ -1,19 +1,19 @@
|
|||
import path from 'path';
|
||||
import load from '@lib/load';
|
||||
|
||||
// Helper methods to setup dummy/ fake projects
|
||||
const loadSetup = async name => {
|
||||
const simpleWebsite = path.join(__dirname, '__fixtures__', 'simple-website');
|
||||
const customWebsite = path.join(__dirname, '__fixtures__', 'custom-website');
|
||||
|
||||
switch (name) {
|
||||
case 'simple':
|
||||
return await load(simpleWebsite);
|
||||
case 'custom':
|
||||
return await load(customWebsite);
|
||||
default:
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
export default loadSetup;
|
||||
import path from 'path';
|
||||
import load from '@lib/load';
|
||||
|
||||
// Helper methods to setup dummy/ fake projects
|
||||
const loadSetup = async name => {
|
||||
const simpleWebsite = path.join(__dirname, '__fixtures__', 'simple-website');
|
||||
const customWebsite = path.join(__dirname, '__fixtures__', 'custom-website');
|
||||
|
||||
switch (name) {
|
||||
case 'simple':
|
||||
return load(simpleWebsite);
|
||||
case 'custom':
|
||||
return load(customWebsite);
|
||||
default:
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
export default loadSetup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue