[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/feiok/One-step-admin_basic/main/.commitlintrc.js [Back]  [Original]

/** @type {import('cz-git').UserConfig} */
export default {
  rules: {
    // @see: https://commitlint.js.org/#/reference-rules
  },
  prompt: {
    alias: { fd: 'docs: fix typos' },
    messages: {
      type: ' :',
      scope: ':',
      customScope: ' :',
      subject: ' :\n',
      body: ' "|"  :\n',
      breaking: ' "|"  :\n',
      footerPrefixsSelect: 'issue:',
      customFooterPrefixs: 'issue :',
      footer: 'issue () : #31, #I3244 :\n',
      confirmCommit: 'commit ?',
    },
    types: [
      { value: 'feat', name: 'feat:        | A new feature', emoji: ':sparkles:' },
      { value: 'fix', name: 'fix:         | A bug fix', emoji: ':bug:' },
      { value: 'docs', name: 'docs:        | Documentation only changes', emoji: ':memo:' },
      { value: 'style', name: 'style:       | Changes that do not affect the meaning of the code', emoji: ':lipstick:' },
      { value: 'refactor', name: 'refactor:     | A code change that neither fixes a bug nor adds a feature', emoji: ':recycle:' },
      { value: 'perf', name: 'perf:        | A code change that improves performance', emoji: ':zap:' },
      { value: 'test', name: 'test:        | Adding missing tests or correcting existing tests', emoji: ':white_check_mark:' },
      { value: 'build', name: 'build:       | Changes that affect the build system or external dependencies', emoji: ':package:' },
      { value: 'ci', name: 'ci:          | Changes to our CI configuration files and scripts', emoji: ':ferris_wheel:' },
      { value: 'revert', name: 'revert:      | Revert to a commit', emoji: ':rewind:' },
      { value: 'chore', name: 'chore:       | Other changes that do not modify src or test files', emoji: ':hammer:' },
    ],
    useEmoji: false,
    emojiAlign: 'center',
    themeColorCode: '',
    scopes: [],
    allowCustomScopes: true,
    allowEmptyScopes: true,
    customScopesAlign: 'bottom',
    customScopesAlias: 'custom',
    emptyScopesAlias: 'empty',
    upperCaseSubject: false,
    markBreakingChangeMode: true,
    allowBreakingChanges: ['feat', 'fix'],
    breaklineNumber: 100,
    breaklineChar: '|',
    skipQuestions: [],
    issuePrefixs: [
      //  gitee 
      { value: 'link', name: 'link:      ISSUES ' },
      { value: 'closed', name: 'closed:    ISSUES ' },
    ],
    customIssuePrefixsAlign: 'top',
    emptyIssuePrefixsAlias: 'skip',
    customIssuePrefixsAlias: 'custom',
    allowCustomIssuePrefixs: true,
    allowEmptyIssuePrefixs: true,
    confirmColorize: true,
    maxHeaderLength: Number.POSITIVE_INFINITY,
    maxSubjectLength: Number.POSITIVE_INFINITY,
    minSubjectLength: 0,
    scopeOverrides: undefined,
    defaultBody: '',
    defaultIssues: '',
    defaultScope: '',
    defaultSubject: '',
  },
}

Web Proxy Viewer  |  New URL  |  Original Page