mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 13:37:05 +02:00
chore(v2): fix code style
This commit is contained in:
parent
b07507c9cc
commit
6965a668cd
143 changed files with 458 additions and 457 deletions
|
@ -23,7 +23,7 @@ function hasYarn(): boolean {
|
|||
}
|
||||
|
||||
function isValidGitRepoUrl(gitRepoUrl: string): boolean {
|
||||
return ['https://', 'git@'].some((item) => gitRepoUrl.startsWith(item));
|
||||
return ['https://', 'git@'].some(item => gitRepoUrl.startsWith(item));
|
||||
}
|
||||
|
||||
async function updatePkg(pkgPath: string, obj: any): Promise<void> {
|
||||
|
@ -43,7 +43,7 @@ export async function init(
|
|||
const templatesDir = path.resolve(__dirname, '../templates');
|
||||
const templates = fs
|
||||
.readdirSync(templatesDir)
|
||||
.filter((d) => !d.startsWith('.') && !d.startsWith('README'));
|
||||
.filter(d => !d.startsWith('.') && !d.startsWith('README'));
|
||||
|
||||
const gitChoice = 'Git repository';
|
||||
const templateChoices = [...templates, gitChoice];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue