-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
Add silent flag to avoid default node error message on --fix #159
Comments
Discovered a solution |
Would be nice if there was a way to display the errors, but still avoid the final node fail error. |
My xo "xo": {
"esnext": true,
"parser": "babel-eslint",
"semicolon": false,
"reporter": "compact",
"plugins": [
"filenames"
],
"rules": {
"filenames/match-regex": [
2,
"^[a-z-\\.]+$",
true
]
}
}, |
Why do you want to avoid the exit code 1?
That's weird. The
Btw, XO already includes a |
You can add "scripts": {
"fix": "xo --fix || true"
} |
Thanks a lot guys. I will try. |
Closing as resolved. || true is the native way to do this and it's shorter than any flag ever could. Eslint doesn't offer such a flag either https://eslint.org/docs/latest/user-guide/command-line-interface |
Not clear how to run
xo --fix
in silent mode to avoid the exit code 1 error displayed.Please advice. Thanks :)
The text was updated successfully, but these errors were encountered: