-
-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose formatters
from either a separate package or the CLI package
#2467
Comments
Hey! Happy to assist if needed. If you're up for that, you could indeed move the formatters into a separate package or maybe make it a part of packages/core. I could take care of the Node.js bit of the issue. |
🎉 This issue has been resolved in version 6.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@P0lip Sorry for the late follow up on this, I'm trying to use this now and unable to import it in my yarn project. Any advice? Getting a module not found error on a simple import like |
Hey @sennyeya! |
Thanks,
https://github.com/backstage/backstage/blob/master/tsconfig.json
Here's the main tsconfig.json, there's also the extends one which is
https://github.com/backstage/backstage/blob/master/packages/cli/config/tsconfig.json.
|
@P0lip Great, thanks for the quick turnaround! |
🎉 This issue has been resolved in version 1.18.1 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
User story.
As a developer who wants to use Spectral in JS/TS, I can do create custom formatting, so that I can format my text output from an internal command without subshelling out to
spectral-cli
.Is your feature request related to a problem?
I'm looking to use the existing formatters in
sepctral-cli
in Javascript but cannot as they are not exported from thecli
package.Describe the solution you'd like
Expose the formatters from their own package
@stoplight/spectral-formatters
. Alternatively, they could be exposed from the CLI, but would prefer their own package.Additional context
I'm happy to submit a PR, this should be pretty straightforward.
The text was updated successfully, but these errors were encountered: