Skip to content

Commit 7fbdf31

Browse files
authored
Merge pull request #146 from magento-commerce/imported-fredden-magento-coding-standard-350
[Imported] Disallow Yoda Conditions in JavaScript files
2 parents 6033411 + 424185c commit 7fbdf31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: eslint/.eslintrc-magento

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"strict": ["error", "function"],
9797
"use-isnan": 2,
9898
"valid-typeof": 2,
99-
"vars-on-top": 2
99+
"vars-on-top": 2,
100+
"yoda": [2, "never"]
100101
}
101102
}

0 commit comments

Comments
 (0)