From 0b1811525f4ca2aa5c562de031b634cf90f5f0c1 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 02:35:57 +0400 Subject: feat(eslint): Rule "yoda" Signed-off-by: Valentin Popov --- src/rules/default.json | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/rules') diff --git a/src/rules/default.json b/src/rules/default.json index 71e824c..79cb99b 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -549,5 +549,13 @@ { "requireStringLiterals": true } + ], + "yoda": [ + "error", + "never", + { + "exceptRange": false, + "onlyEquality": false + } ] } -- cgit v1.2.3