Skip to content
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

Have Snazzy output the same exit code as Standard #15

Closed
chaucerbao opened this issue Jan 10, 2017 · 3 comments
Closed

Have Snazzy output the same exit code as Standard #15

chaucerbao opened this issue Jan 10, 2017 · 3 comments

Comments

@chaucerbao
Copy link

I'm trying to run the linter on a pre-commit script, so I want NPM to halt if there's a lint error. For whatever reason, NPM halts when Standard encounters an error, but not when Snazzy does.

Standard exits with code 1, while Snazzy exits with 255.

Can Snazzy pass thru the same exit code(s) that Standard produces?

@feross
Copy link
Member

feross commented Jan 11, 2017

What command are you using for standard and also for snazzy? Without that, it's really hard to reproduce what you're talking about.

@feross
Copy link
Member

feross commented Jan 11, 2017

Nevermind, I figured it out. We're accidentally setting the exit code to -1 (which gets converted to 255) instead of 1.

@feross
Copy link
Member

feross commented Jan 11, 2017

Released as 6.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants