Skip to content

Commit 424185c

Browse files
committed
Disallow Yoda Conditions
1 parent 33e41e4 commit 424185c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eslint/.eslintrc-magento

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"strict": ["error", "function"],
7777
"use-isnan": 2,
7878
"valid-typeof": 2,
79-
"vars-on-top": 2
79+
"vars-on-top": 2,
80+
"yoda": [2, "never"]
8081
}
8182
}

0 commit comments

Comments
 (0)