From 9af5ee89ebf4c491d2f5231bced89d8cb1863660 Mon Sep 17 00:00:00 2001 From: Parul Gupta Date: Tue, 2 Oct 2018 16:26:25 +0530 Subject: [PATCH] Updated wording of variable--one-const rule --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fd986b04..13a618f9 100644 --- a/README.md +++ b/README.md @@ -1581,7 +1581,7 @@ Other Style Guides ``` - - [13.2](#variables--one-const) Use one `const` or `let` declaration per variable. eslint: [`one-var`](https://eslint.org/docs/rules/one-var.html) + - [13.2](#variables--one-const) Use one `const` or `let` declaration per variable or assignment. eslint: [`one-var`](https://eslint.org/docs/rules/one-var.html) > Why? It’s easier to add new variable declarations this way, and you never have to worry about swapping out a `;` for a `,` or introducing punctuation-only diffs. You can also step through each declaration with the debugger, instead of jumping through all of them at once.