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

Bug: invalid config errors swallowed when using --stdin #2154

Closed
glenjamin opened this issue Mar 27, 2015 · 3 comments
Closed

Bug: invalid config errors swallowed when using --stdin #2154

glenjamin opened this issue Mar 27, 2015 · 3 comments
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly cli Relates to ESLint's command-line interface

Comments

@glenjamin
Copy link
Contributor

See the output below.

When using --stdin and an invalid config file, the process exits silently with an exit code of 0.

~/Development/TechTests/my-react-frontend (immutable) gma08
> cat server.js | eslint --stdin

~/Development/TechTests/my-react-frontend (immutable) gma08
> eslint server.js

/usr/local/lib/node_modules/eslint/lib/config.js:59
            throw e;
                  ^
YAMLException: Cannot read config file: /Users/gma08/Development/TechTests/my-react-frontend/.eslintrc
Error: JS-YAML: missed comma between flow collection entries at line 11, column 17:
            "quotes": false,
                    ^
@nzakas nzakas added bug ESLint is working incorrectly cli Relates to ESLint's command-line interface accepted There is consensus among the team that this change meets the criteria for inclusion labels Mar 27, 2015
@nzakas
Copy link
Member

nzakas commented Mar 27, 2015

Thanks, will take a look.

@nzakas
Copy link
Member

nzakas commented Mar 27, 2015

Working on this.

@nzakas
Copy link
Member

nzakas commented Mar 27, 2015

Good news is that the error is occurring. Bad news is it's being swallowed somewhere along the line. Still investigating.

@nzakas nzakas closed this as completed in 5f34214 Mar 28, 2015
nzakas added a commit that referenced this issue Mar 28, 2015
Fix: Ensure piped in code will trigger correct errors (fixes #2154)
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 7, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly cli Relates to ESLint's command-line interface
Projects
None yet
Development

No branches or pull requests

2 participants