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

Add option to format diagnostics as JSON #31

Merged
merged 4 commits into from
Oct 1, 2023

Conversation

hochata
Copy link
Contributor

@hochata hochata commented Sep 24, 2023

ESLint has an option for format diagnostics as JSON (see here). It is described as

...useful when you want to programmatically work with the CLI's linting results.

because it returns more information than the other formatters.

In particular, it gives the start and error position of the diagnostic. This means more accurate error highlights.

flymake-eslint.el Outdated Show resolved Hide resolved
flymake-eslint.el Outdated Show resolved Hide resolved
@hochata hochata force-pushed the feat/json-error-format branch 8 times, most recently from 260089d to a41c142 Compare September 30, 2023 05:14
For more accurate error regions
To support older Emacs versions
Show it when it is requested AND it is available
@orzechowskid orzechowskid merged commit 579f20f into orzechowskid:master Oct 1, 2023
@orzechowskid
Copy link
Owner

thanks for this feature!

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

Successfully merging this pull request may close these issues.

2 participants