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

Support new eslint suggestions API #289

Open
wdoug opened this issue Dec 3, 2019 · 1 comment
Open

Support new eslint suggestions API #289

wdoug opened this issue Dec 3, 2019 · 1 comment

Comments

@wdoug
Copy link

wdoug commented Dec 3, 2019

Eslint has a new Suggestions API that was initially described in this RFC, and recently merged and released in eslint 6.7.0.

The suggestions API provides information for users to manually apply fixes for lint issues that don't have enough context to be auto-fixable. Here is an example of how it would work:

new RegExp("*\.js", "u")
//           ^^
//           ├ Remove the `\`. This maintains the current functionality. (no-useless-escape)
//           └ Replace the `\` with `\\` to include the actual backslash character. (no-useless-escape)
@kaste
Copy link
Contributor

kaste commented Dec 3, 2019

Hi! I thought the suggestions don't show up in the normal json report for the command line, t.i. only node based editors would get them.

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

No branches or pull requests

2 participants