chore: better Prettier config for easier reviews
This commit is contained in:
@ -3,30 +3,30 @@
|
||||
*/
|
||||
exports.componentGenerator = () => {
|
||||
return {
|
||||
description: 'Component Generator',
|
||||
description: "Component Generator",
|
||||
prompts: [
|
||||
{
|
||||
type: 'input',
|
||||
name: 'name',
|
||||
message: 'component name'
|
||||
type: "input",
|
||||
name: "name",
|
||||
message: "component name",
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
name: 'folder',
|
||||
message: 'folder in components'
|
||||
}
|
||||
type: "input",
|
||||
name: "folder",
|
||||
message: "folder in components",
|
||||
},
|
||||
],
|
||||
actions: [
|
||||
{
|
||||
type: 'add',
|
||||
path: 'components/{{folder}}/{{properCase name}}/{{properCase name}}.tsx',
|
||||
templateFile: 'generators/component/Component.tsx.hbs'
|
||||
type: "add",
|
||||
path: "components/{{folder}}/{{properCase name}}/{{properCase name}}.tsx",
|
||||
templateFile: "generators/component/Component.tsx.hbs",
|
||||
},
|
||||
{
|
||||
type: 'add',
|
||||
path: 'components/{{folder}}/{{properCase name}}/index.ts',
|
||||
templateFile: 'generators/component/index.ts.hbs'
|
||||
}
|
||||
]
|
||||
type: "add",
|
||||
path: "components/{{folder}}/{{properCase name}}/index.ts",
|
||||
templateFile: "generators/component/index.ts.hbs",
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user