From 22f9ade8b42fc294a0d658ef4bad2e10591b2b9e Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Thu, 28 May 2020 11:42:33 -0700 Subject: [PATCH] Add eslint rule to warn about the comma operator. Comma operators in our code are almost always mistakes stemming from bad or incomplete SC conversion. --- .eslintrc.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.json b/.eslintrc.json index 9e05ffd3bbf..40306b2f373 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -87,6 +87,7 @@ "allowSingleLine": true } ], + "no-sequences": "warn", "jsdoc/check-alignment": 1, "jsdoc/check-examples": 0, // interferes with SugarCube examples "jsdoc/check-indentation": 0, -- GitLab