Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(preset): ESLint recommended-bump is always "patch" (#371)
Recommended version bump detection with ESLint preset is broken since `conventional-changelog-eslint` version 3.0.0: `npx conventional-recommended-bump -p eslint` always returns "patch". This is because the preset's `parserOpts` (re-used with v3.0.0) "headerCorrespondence" is set to `['tag', 'message']` rather than `['type', 'subject']`, which was used before in the [ESLint preset "conventional-recommended-bump" specific `parserOpts`][1]. This adapts the ESLint preset's `whatBump` implementation to check "tag" instead of "type", which fixes the issue. [1]: https://github.com/conventional-changelog/conventional-changelog/blob/ce1fd981f88ce201e996dfa833e4682de3aafcdd/packages/conventional-changelog-eslint/conventional-recommended-bump.js#L32-L35
- Loading branch information