sloops77 / eslint-plugin-better-mutation

Eslint rules to enforce function-scope mutation only
MIT License
20 stars 6 forks source link

fixes multiple let declarations on a single line #21

Closed nweber-gh closed 4 months ago

nweber-gh commented 3 years ago

On master this code fails.

let a, b;
a = 2; // fine
b = 2; // error

This fixes the issue.

Added new test and all existing tests pass.