single-var-declarator
Last updated: Jan 16, 2025
Disallows multiple variable definitions in the same declaration statement.
Invalid:
const foo = 1, bar = "2";
Valid:
const foo = 1;
const bar = "2";
Disallows multiple variable definitions in the same declaration statement.
Invalid:
const foo = 1, bar = "2";
Valid:
const foo = 1;
const bar = "2";