aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json8
2 files changed, 9 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 0441607..c8c4261 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -279,7 +279,7 @@
- [ ] "wrap-iife"
- [ ] "wrap-regex"
- [ ] "yield-star-spacing"
-- [ ] "yoda"
+- [X] "yoda"
## Import
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
+ }
]
}