@commitlint/cli
Advanced tools
Comparing version 5.2.3 to 5.2.4
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="5.2.4"></a> | ||
## [5.2.4](https://github.com/marionebl/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08) | ||
**Note:** Version bump only for package @commitlint/cli | ||
<a name="5.2.3"></a> | ||
@@ -8,0 +16,0 @@ ## [5.2.3](https://github.com/marionebl/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05) |
@@ -105,3 +105,9 @@ #!/usr/bin/env node | ||
parserOpts = selectParserOpts(loaded.parserPreset); | ||
opts = parserOpts ? { parserOpts } : undefined; | ||
opts = parserOpts ? { parserOpts } : { parserOpts: {} }; | ||
// Strip comments if reading from `.git/COMMIT_EDIT_MSG` | ||
if (range.edit) { | ||
opts.parserOpts.commentChar = '#'; | ||
} | ||
return Promise.resolve(core.lint(message, loaded.rules, opts)).then(function ($await_3) { | ||
@@ -108,0 +114,0 @@ try { |
{ | ||
"name": "@commitlint/cli", | ||
"version": "5.2.3", | ||
"version": "5.2.4", | ||
"description": "Lint your commit messages", | ||
@@ -72,3 +72,3 @@ "bin": { | ||
"dependencies": { | ||
"@commitlint/core": "^5.2.0", | ||
"@commitlint/core": "^5.2.4", | ||
"babel-polyfill": "6.26.0", | ||
@@ -75,0 +75,0 @@ "chalk": "2.3.0", |
@@ -102,3 +102,9 @@ #!/usr/bin/env node | ||
const parserOpts = selectParserOpts(loaded.parserPreset); | ||
const opts = parserOpts ? {parserOpts} : undefined; | ||
const opts = parserOpts ? {parserOpts} : {parserOpts: {}}; | ||
// Strip comments if reading from `.git/COMMIT_EDIT_MSG` | ||
if (range.edit) { | ||
opts.parserOpts.commentChar = '#'; | ||
} | ||
const report = await core.lint(message, loaded.rules, opts); | ||
@@ -158,5 +164,3 @@ const formatted = core.format(report, {color: flags.color}); | ||
throw new Error( | ||
`Received ${ | ||
edit | ||
} as value for -e | --edit, but GIT_PARAMS is not available globally.` | ||
`Received ${edit} as value for -e | --edit, but GIT_PARAMS is not available globally.` | ||
); | ||
@@ -163,0 +167,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
373107
1156
Updated@commitlint/core@^5.2.4