How to use @commitlint/config-conventional - 6 common examples

To help you get started, we’ve selected a few @commitlint/config-conventional examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Peakfijn / Conventions / packages / commitlint-config-peakfijn / index.js View on Github external
const commitTypes = require('commit-types-peakfijn');
const config = require('@commitlint/config-conventional');

config.rules['header-max-length'] = [2, 'always', 80];
config.rules['scope-empty'] = [2, 'always'];
config.rules['subject-min-length'] = [2, 'always', 15];
config.rules['type-enum'] = [2, 'always', Object.keys(commitTypes)];

module.exports = config;
github meteorlxy / vssue / .commitlintrc.js View on Github external
const configConventional = require('@commitlint/config-conventional')

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

  rules: {
		'type-enum': [
			configConventional.rules['type-enum'][0],
      configConventional.rules['type-enum'][1],
      [
        'release',
        ...configConventional.rules['type-enum'][2],
      ]
		],
  },
}
github Peakfijn / Conventions / packages / commitlint-config-peakfijn / index.js View on Github external
const commitTypes = require('commit-types-peakfijn');
const config = require('@commitlint/config-conventional');

config.rules['header-max-length'] = [2, 'always', 80];
config.rules['scope-empty'] = [2, 'always'];
config.rules['subject-min-length'] = [2, 'always', 15];
config.rules['type-enum'] = [2, 'always', Object.keys(commitTypes)];

module.exports = config;
github Peakfijn / Conventions / packages / commitlint-config-peakfijn / index.js View on Github external
const commitTypes = require('commit-types-peakfijn');
const config = require('@commitlint/config-conventional');

config.rules['header-max-length'] = [2, 'always', 80];
config.rules['scope-empty'] = [2, 'always'];
config.rules['subject-min-length'] = [2, 'always', 15];
config.rules['type-enum'] = [2, 'always', Object.keys(commitTypes)];

module.exports = config;
github meteorlxy / vssue / .commitlintrc.js View on Github external
const configConventional = require('@commitlint/config-conventional')

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

  rules: {
		'type-enum': [
			configConventional.rules['type-enum'][0],
      configConventional.rules['type-enum'][1],
      [
        'release',
        ...configConventional.rules['type-enum'][2],
      ]
		],
  },
}
github Peakfijn / Conventions / packages / commitlint-config-peakfijn / index.js View on Github external
const commitTypes = require('commit-types-peakfijn');
const config = require('@commitlint/config-conventional');

config.rules['header-max-length'] = [2, 'always', 80];
config.rules['scope-empty'] = [2, 'always'];
config.rules['subject-min-length'] = [2, 'always', 15];
config.rules['type-enum'] = [2, 'always', Object.keys(commitTypes)];

module.exports = config;

@commitlint/config-conventional

Shareable commitlint config enforcing conventional commits

MIT
Latest version published 3 days ago

Package Health Score

98 / 100
Full package analysis

Popular @commitlint/config-conventional functions