-
Notifications
You must be signed in to change notification settings - Fork 927
Closed
Description
Expected Behavior
As documented here and implemented here, I should be able to extend my config by scope alone.
Current Behavior
In the case of this shareable config, extending @form8ion
fails, but extending @form8ion/commitlint-config
works properly.
Error Details
Error: Cannot find module "@form8ion" from "/Users/travi/development/form8ion/cli"
at resolveId (/Users/travi/development/form8ion/cli/node_modules/@commitlint/resolve-extends/lib/index.js:120:14)
at resolveConfig (/Users/travi/development/form8ion/cli/node_modules/@commitlint/resolve-extends/lib/index.js:95:20)
at reduce (/Users/travi/development/form8ion/cli/node_modules/@commitlint/resolve-extends/lib/index.js:49:20)
at Array.reduce (<anonymous>)
at loadExtends (/Users/travi/development/form8ion/cli/node_modules/@commitlint/resolve-extends/lib/index.js:47:32)
at resolveExtends (/Users/travi/development/form8ion/cli/node_modules/@commitlint/resolve-extends/lib/index.js:30:19)
at Object.$If_1 (/Users/travi/development/form8ion/cli/node_modules/@commitlint/load/lib/index.js:69:45)
at Object.<anonymous> (/Users/travi/development/form8ion/cli/node_modules/@commitlint/load/lib/index.js:142:17)
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
Steps to Reproduce (for bugs)
- Clone https://github.com/form8ion/remark-lint-preset
- Remove
/commitlint-config
from.commitlintrc.js
- Attempt to make a commit
- See Error
Context
I'm attempting to use a new config for a new org. Configs I've used for other orgs have not been scoped, but would like to start using scoped configs instead. This is stopping me from using the short form and instead forcing me to use the full package name.
Your Environment
Executable | Version |
---|---|
commitlint --version |
7.5.2 |
git --version |
2.21.0 |
node --version |
v10.15.3 |
Metadata
Metadata
Assignees
Labels
No labels