yoda Disallow literal-first comparisons A literal-first comparison reverses the subject-first order used by other comparisons. Instead, you SHOULD put the checked value first and reverse a relational operator when required. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function isReady(state: string): boolean { return "ready" === state; } Accepted function isReady(state: string): boolean { return state === "ready"; } Prior art - ESLint ยท yoda language/linter/src/rules/style/yoda.rs:8