proposal: add `--fix` to `one-var`
See original GitHub issue// one-var: ["error", "never"]
const foo = 0,
bar = 1;
can be fixed to:
const foo = 0;
const bar = 1;
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:7 (4 by maintainers)
Top Results From Across the Web
The Single Var Pattern in JavaScript - WebFX
In the single var pattern, all local variables are created using only one var statement. The statement is placed at the start of...
Read more >{8} Future Releases, Workflow Oriented - WordPress Trac
Ticket Summary Component Priority Severity Mil...
#38805 A hook is missing in class WP_List_Table Administration normal major Aw...
#36201 Admin Pagination URLs Use Wrong Hostname...
Read more >eslint | Yarn - Package Manager
A bug fix to the CLI or core (including formatters). Improvements to documentation. Non-user-facing changes such as refactoring code, adding, deleting, or ...
Read more >5069 (ui.tabs.add creates two tab panels when using a full URL)
When creating a new tab by passing in a full URL to ui.tabs.add, two tab panels are added to the DOM—one ... A...
Read more >JDK-8191842 JShell: Inferred type information is lost ... - Bug ID
JDK-8177466 - Add compiler support for local variable type-inference ... forEach(a -> System.out.println(a.i)); But not for this one: var list = Stream.of(1 ...
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
I’m taking a look at this, although I’m only going to attempt fixes for cases where the two
var
declarations are next to each other (var a = 2; var b = 3
, notvar a = 2; for (var b in foo) {}
)No worries, thanks for attempting it!