We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fbaaea commit 3b25e4aCopy full SHA for 3b25e4a
configurations/base/plugins/unicorn.js
@@ -408,7 +408,7 @@ module.exports = {
408
409
// Prefer ternary expressions over simple if-else statements (autofixable)
410
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-ternary.md
411
- '+unicorn/prefer-ternary': ['error', 'always'],
+ '+unicorn/prefer-ternary': ['error', 'only-single-line'],
412
413
// Prefer top-level await over top-level promises and async function calls
414
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-top-level-await.md
0 commit comments