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

when handling an error, always include the filename #5

Open
dylang opened this issue Aug 16, 2024 · 1 comment
Open

when handling an error, always include the filename #5

dylang opened this issue Aug 16, 2024 · 1 comment

Comments

@dylang
Copy link

dylang commented Aug 16, 2024

I'm getting this, but I'm not sure which file is leading to this problem

eslint-disable-inserter: ESLint output does not match expected schema.

× instance[136].messages[0].ruleId is not of a type(s) string

Original error:

16:44:02.600 [ERROR eslint] is not of a type(s) string
             instance[136].messages[0].ruleId is not of a type(s) string

eslint:
is not of a type(s) string
instance[136].messages[0].ruleId is not of a type(s) string

@CorentinDoue
Copy link
Owner

CorentinDoue commented Aug 19, 2024

This error is caused because the input of the script is not a valid eslint json output. eslint-disable-inserter is supposed to be piped on the output of eslint with the json format:

eslint --format json . | eslint-disable-inserter

Can you give some context to help to understand what is happening:

  • Your project (node version, eslint version, eslint-disable-inserter version at least, package manager, all others relevant information)
  • How do install eslint and eslint-disable-inserter, locally or globally ?
  • What command are you running?

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

No branches or pull requests

2 participants