mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
refactor: remove sub-eslintrc, fix more lint errors (#7530)
This commit is contained in:
parent
f443e992b9
commit
9023b7740c
20 changed files with 129 additions and 92 deletions
|
@ -47,12 +47,12 @@ program
|
|||
\`custom\`: enter your custom git clone command. We will prompt you for it.`,
|
||||
)
|
||||
.description('Initialize website.')
|
||||
.action((siteName, template, rootDir, options) => {
|
||||
.action((siteName, template, rootDir, options) =>
|
||||
// See https://github.com/facebook/docusaurus/pull/6860
|
||||
import('../lib/index.js').then(({default: init}) => {
|
||||
init(path.resolve(rootDir ?? '.'), siteName, template, options);
|
||||
});
|
||||
});
|
||||
import('../lib/index.js').then(({default: init}) =>
|
||||
init(path.resolve(rootDir ?? '.'), siteName, template, options),
|
||||
),
|
||||
);
|
||||
|
||||
program.parse(process.argv);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue