Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cz-git): provide config file type helper fn defineConfig and definePrompt #196

Merged
merged 6 commits into from
Oct 30, 2024

Conversation

Zhengqbbb
Copy link
Owner

Related ISSUE

Input follow ISSUE URL address

#193

Type Of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 📝 Document (This change requires a documentation update)
  • 🎨 Theme style (Theme style beautification)
  • ⚠ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🔨 Workflow (Workflow changes)

Clear Describe

  • feat(cz-git): provide config file type helper fn defineConfig and definePrompt

Description

commitlint.config.*

ESM

import { defineConfig } from 'cz-git'

export default defineConfig({
    rules: {
        // @see: https://commitlint.js.org/#/reference-rules
    },
    prompt: {
        alias: { fd: 'docs: fix typos' },
        // ...
    },
})

CJS

const { defineConfig } = require('cz-git')

module.exports = defineConfig({
    rules: {
        // @see: https://commitlint.js.org/#/reference-rules
    },
    prompt: {
        alias: { fd: 'docs: fix typos' },
        // ...
    },
})

cz.config.*

ESM

import { definePrompt } from 'cz-git'

export default definePrompt({
    alias: { fd: 'docs: fix typos' },
    // ...
})

CJS

const { definePrompt } = require('cz-git')

module.exports = definePrompt({
    alias: { fd: 'docs: fix typos' },
    // ...
})

@Zhengqbbb Zhengqbbb merged commit c6589de into main Oct 30, 2024
7 checks passed
@Zhengqbbb Zhengqbbb deleted the feat/export-defind-config-fn_193 branch October 30, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant