chore: run eslint
This commit is contained in:
parent
746bcde87a
commit
f979211d90
|
|
@ -57,7 +57,7 @@ export const add = new Command()
|
|||
const config = await getConfig(cwd)
|
||||
if (!config) {
|
||||
logger.warn(
|
||||
`Configuration is missing. Please run ${chalk.green( 'init' )} to create a components.json file.`,
|
||||
`Configuration is missing. Please run ${chalk.green('init')} to create a components.json file.`,
|
||||
)
|
||||
process.exit(1)
|
||||
}
|
||||
|
|
@ -139,7 +139,7 @@ export const add = new Command()
|
|||
}
|
||||
|
||||
for (const file of item.files) {
|
||||
let filePath = path.resolve(targetDir, file.name)
|
||||
const filePath = path.resolve(targetDir, file.name)
|
||||
|
||||
// Run transformers.
|
||||
const content = await transform({
|
||||
|
|
|
|||
|
|
@ -112,8 +112,8 @@ export async function promptForConfig(
|
|||
name: 'framework',
|
||||
message: `Which ${highlight('framework')} are you using?`,
|
||||
choices: [
|
||||
{title: 'Nuxt', value: 'nuxt'},
|
||||
{title: 'Vite + Vue', value: 'vue'},
|
||||
{ title: 'Nuxt', value: 'nuxt' },
|
||||
{ title: 'Vite + Vue', value: 'vue' },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
@ -140,7 +140,7 @@ export async function promptForConfig(
|
|||
type: 'text',
|
||||
name: 'tailwindCss',
|
||||
message: `Where is your ${highlight('Tailwind CSS')} file?`,
|
||||
initial: (prev,values) => defaultConfig?.tailwind.css ?? values.framework === 'nuxt' ? DEFAULT_TAILWIND_CSS_NUXT : DEFAULT_TAILWIND_CSS
|
||||
initial: (prev, values) => defaultConfig?.tailwind.css ?? values.framework === 'nuxt' ? DEFAULT_TAILWIND_CSS_NUXT : DEFAULT_TAILWIND_CSS,
|
||||
},
|
||||
{
|
||||
type: 'toggle',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user