generators/component/index.js
Function writing
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
writing () {
// Create the schema entry
this._template('schema.js', 'schema/components/' + this.props.name + '.js', this.props)
if (this.props.docs) {
Function prompting
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
prompting () {
this.log('Creating a new component for your style-guider!')
const prompts = [{
type: 'input',
name: 'name',