Skip to content

Commit

Permalink
Disallow yoda conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnault committed Mar 3, 2021
1 parent a367d44 commit 893eb16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
Expand Down

0 comments on commit 893eb16

Please sign in to comment.