Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;
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],
]
],
},
}
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;
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;
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],
]
],
},
}
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;