chore: eslint & prettier nits

This commit is contained in:
endiliey 2018-08-11 02:54:34 +08:00
parent a4cc782858
commit 15ce4a95e2
4 changed files with 68 additions and 69 deletions

View file

@ -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;