Skip to content

Commit b8c0f0f

Browse files
committed
Add no-ternary to ESLint config
Avoiding ternary's is part of our Ruby styleguide, and I think it's something we generally want to be consistent about cross-language. ESLint has a rule for it, so this will help enforce this.
1 parent 7a71d2e commit b8c0f0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript/eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
"curly": 2,
1414
"eqeqeq": [2, "allow-null"],
1515
"no-shadow-restricted-names": 2,
16+
"no-ternary": 2,
1617
"no-undef": 2,
1718
"no-unused-vars": [2, { "argsIgnorePattern": "^_" }],
1819
"no-use-before-define": 2,

0 commit comments

Comments
 (0)