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

Test: ESLint autofix #5654

Closed
1 task done
dbaeumer opened this issue Apr 22, 2016 · 0 comments
Closed
1 task done

Test: ESLint autofix #5654

dbaeumer opened this issue Apr 22, 2016 · 0 comments
Assignees
Milestone

Comments

@dbaeumer
Copy link
Member

dbaeumer commented Apr 22, 2016

  • @bgashler1
  • Install the latest ESLint extension.
  • create a workspace folder and install eslint into it (npm eslint)
  • init eslint using eslint --init
  • set some rules that have auto fixes (see http://eslint.org/docs/rules/)
  • create a js file and violate some auto fixable rules:
  • ensure that:
    • you get a light bulb on these errors. You have to set the cursor at the beginning of the marker
    • the light bulb lets you fix this error, all equal errors or every error in the file.
    • ensure that the fixes are applied correctly and that the fixes don't harm the file

Disclaimer: If at a position two fixes exists then only one is applied since ESLint generates overlapping text edits which the extension filters again.

@dbaeumer dbaeumer added this to the April 2016 milestone Apr 22, 2016
@egamma egamma mentioned this issue Apr 25, 2016
68 tasks
@bpasero bpasero closed this as completed Apr 27, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants