You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following #100, there is no way to run prompt-cli with a specific config file path. It just assumes the default which is commitlint.config.js under the repository's root.
Expected Behavior
Either:
npm run commit --config </path/to/config.js>
COMMITLINT_CONFIG=/path/to/config.js npm run commit
I am facing the same issue. I wouldn't mind much doing this over the christmas break. Would a path or location configuration parameter in package.json be the right approach?
Thank you for your input and I agree with you (less additional parameter checks === less room for errors in my view).
I've forked the repo, had a look around and from what I can see I don't think it's too complicated to implement. If I have any questions I'll post them here.
Following #100, there is no way to run
prompt-cli
with a specific config file path. It just assumes the default which iscommitlint.config.js
under the repository's root.Expected Behavior
Either:
npm run commit --config </path/to/config.js>
COMMITLINT_CONFIG=/path/to/config.js npm run commit
{ config: { '@commitlint/prompt-cli': { config: '/path/to/config.js' } } }
in package.jsonCurrent Behavior
prompt-cli
runs with no customizations in place (no type/scope enums loaded etc.)Affected packages
Your Environment
commitlint --version
git --version
node --version
The text was updated successfully, but these errors were encountered: