idea-conventional-commit-commitlint icon indicating copy to clipboard operation
idea-conventional-commit-commitlint copied to clipboard

Try to get tokens from package.json if .commitlintrc.json is missing

Open lppedd opened this issue 5 years ago • 4 comments

lppedd avatar Apr 03 '20 01:04 lppedd

Commitlint uses https://github.com/davidtheclark/cosmiconfig. So configuration files such as .commitlintrc.js are also valid. It would be nice to also support them.

IGassmann avatar Apr 20 '20 11:04 IGassmann

@IGassmann hi! Heh, I have no idea if a plugin is able to communicate with a Node module and then retrieve a possbible "result". Natively supporting JS files is impossible since there might be functions.

lppedd avatar Apr 20 '20 14:04 lppedd

I understand. That's unfortunate, we use .js config files in our projects including for commitlint.

IGassmann avatar Apr 20 '20 15:04 IGassmann

@IGassmann the idea is good tho, so I'll keep the issue open. I can't give any estimate unfortunately. Need a pause from all the work I've done on Conventional Commit first 😄

lppedd avatar Apr 20 '20 16:04 lppedd