Implement autofix for prefer-const
See original GitHub issueWe already have prefer-const
and it’s really smart, but I was wondering if we could autofix this. I’d be happy to work on this.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:14 (7 by maintainers)
Top Results From Across the Web
ESLint autofix ignore rule - visual studio code - Stack Overflow
Basically, I want: Ignore 1 particular rule for fixing: prefer-const; See all the warnings and errors highlighted in editor (including prefer- ...
Read more >eslint-plugin-no-autofix | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >prefer-const - ESLint - Pluggable JavaScript Linter
/*eslint prefer-const: "error"*/ // it's initialized and never reassigned. let a = 3; ... suggest to use `no-var` rule. var b = 3;...
Read more >Eslint-plugin-disable-autofix - npm.io
Check Eslint-plugin-disable-autofix 3.0.0 package - Last release 3.0.0 with MIT licence at our NPM packages aggregator and search ... Use 3rd-party plugins
Read more >eslint-plugin-autofix - npm Package Health Analysis | Snyk
Name 🛠 Description
array‑bracket‑spacing 🛠 enforce consistent spacing inside array brackets
array‑element‑newline 🛠 enforce line breaks after each array element
arrow‑body‑style 🛠 require braces around arrow...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@platinumazure I think if you read this more carefully, perhaps even reading my attached pull request, you’ll see that this is not only completely possible to do with static analysis, but actually already implemented. I like to think that implementing something is the ultimate way to prove it’s possible.
Without reading through the reasons why it’s tough, I’ll give this a +1 as a desired feature