From 72cd34784a851761d404a4f2becf2846b2815960 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 27 Jul 2019 16:57:50 -0700 Subject: [PATCH] Disallow self assignment of properties (no-self-assign) This rule was actually enabled in a prior upgrade of ESLint. Let's set the option explicitly nonetheless. Fixes: https://github.com/standard/standard/issues/1186 --- eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eslintrc.json b/eslintrc.json index 7861f56..c6b8486 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -1,6 +1,7 @@ { "extends": ["standard", "standard-jsx"], "rules": { - "quotes": ["error", "single", { "avoidEscape": true }] + "quotes": ["error", "single", { "avoidEscape": true }], + "no-self-assign": ["error", { "props": true }] } }