From 893eb166ece52f0f945f5c6893f86cb1b39ffcc8 Mon Sep 17 00:00:00 2001 From: Alex Nault Date: Wed, 3 Mar 2021 11:46:51 -0500 Subject: [PATCH] Disallow yoda conditions --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 2aeed92..c60fb91 100644 --- a/index.js +++ b/index.js @@ -12,6 +12,7 @@ module.exports = { rules: { "no-return-await": "error", "no-use-before-define": "off", // uses "@typescript-eslint/no-use-before-define" instead + yoda: ["error", "never"], "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-unused-vars": ["warn", { ignoreRestSiblings: true }],