Skip to content

Commit

Permalink
Merge pull request #41 from InVisionApp/develop
Browse files Browse the repository at this point in the history
Dependabot Bumps
  • Loading branch information
nick-invision authored Feb 29, 2020
2 parents 99df747 + 94ad75c commit d806539
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 193 deletions.
16 changes: 16 additions & 0 deletions .lintError.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const colors = require('colors');
const rules = require('./.commitlintrc.js').rules['type-enum'];
const error = [
'', // intentional empty item
colors.bold(colors.red('Invalid Commit Format')),
`Expected Format: '[${colors.cyan('Type')}]: [${colors.magenta('Subject')}]'`,
`${colors.cyan('Type')} must be one of ${rules[2].join('|')}`,
`${colors.magenta('Subject')} can be any commit message`,
'', // intentional empty item
`Example valid commit:`,
`${colors.cyan('patch')}: ${colors.magenta('this is a commit message.')}`,
'', // intentional empty item
];

console.log(error.join('\n'));
process.exit(1);
272 changes: 86 additions & 186 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d806539

Please sign in to comment.