Diego Garcia
Diego Garcia

Reputation: 21

@commitlint/prompt-cli configuration not working

I'm trying to configure my commitlint prompt to show a list for type selection.

This is my config file (commitlint.config.js):

module.exports = {
    extends: ['@commitlint/config-conventional'],

    prompt: {
        questions: {
            type: {
                description: "My description:",
                enum: {
                    feat: {
                        description: 'A new feature',
                        title: 'Features',
                      },
                      fix: {
                        description: 'A bug fix',
                        title: 'Bug Fixes',
                      },
                }
            }
        }
    }
};

but is not working: prompt type question

Upvotes: 2

Views: 340

Answers (0)

Related Questions