Skip to content

Instantly share code, notes, and snippets.

@jasonhodges
Last active April 4, 2019 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonhodges/75b16817e16e28c09bce124dd90b5fe1 to your computer and use it in GitHub Desktop.
Save jasonhodges/75b16817e16e28c09bce124dd90b5fe1 to your computer and use it in GitHub Desktop.
module.exports = {
extends: ['./commitlint.mobile.js'],
parserPreset: './parser-preset'
};
module.exports = {
rules: {
'body-leading-blank': [1, 'always'],
'footer-leading-blank': [1, 'always'],
'header-max-length': [2, 'always', 72],
'scope-case': [2, 'always', 'lower-case'],
'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case']
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test'
]
]
}
};
// parser-preset.js
module.exports = {
parserOpts: {
subjectPattern: /^[MOBSPAW]+-[0-9]+ - .*/ ,
issuePrefixes: ['MOBSPAW-']
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment