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 + } ] }