Skip to content

feat: support lint opts#11

Merged
wagoid merged 1 commit intowagoid:masterfrom
mj-hd:feat/pass-opts
Nov 25, 2019
Merged

feat: support lint opts#11
wagoid merged 1 commit intowagoid:masterfrom
mj-hd:feat/pass-opts

Conversation

@mj-hd
Copy link
Copy Markdown
Contributor

@mj-hd mj-hd commented Oct 24, 2019

Copy link
Copy Markdown
Owner

@wagoid wagoid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mjhd-devlion, thank you for the update! LGTM 🚀

config.parserPreset != null && config.parserPreset.parserOpts != null
? config.parserPreset.parserOpts
: {},
plugins: config.plugins != null ? config.plugins : {},
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found it weird that @commitlint/cli defaults plugins (which is an array) to {}, but if they do that then I think it makes sense to keep same behavior 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants