SublimeLinter / SublimeLinter-eslint

This linter plugin for SublimeLinter provides an interface to ESLint
MIT License
865 stars 88 forks source link

Support new eslint suggestions API #289

Open wdoug opened 4 years ago

wdoug commented 4 years ago

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 commented 4 years ago

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.