-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable the unicorn/prefer-ternary
ESLint plugin rule
#16753
Enable the unicorn/prefer-ternary
ESLint plugin rule
#16753
Conversation
To limit the readability impact of these changes, the `only-single-line` option was used; please find additional details at https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-ternary.md These changes were done automatically, using the `gulp lint --fix` command.
Not all cases could be automatically fixed, and the changes also triggered a number of `prefer-const` errors that needed to be handled manually.
554352d
to
c0fe96b
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/464b3059b3b91fb/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/17abb9d0aabfefe/output.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/464b3059b3b91fb/output.txt Total script time: 27.13 mins
Image differences available at: http://54.241.84.105:8877/464b3059b3b91fb/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/17abb9d0aabfefe/output.txt Total script time: 37.57 mins
Image differences available at: http://54.193.163.58:8877/17abb9d0aabfefe/reftest-analyzer.html#web=eq.log |
/botio-linux integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/286a43c0460c43c/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/286a43c0460c43c/output.txt Total script time: 4.75 mins
|
Enable the
unicorn/prefer-ternary
ESLint plugin ruleTo limit the readability impact of these changes, the
only-single-line
option was used; please find additional details at https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-ternary.mdThese changes were done automatically, using the
gulp lint --fix
command.Additional manual
unicorn/prefer-ternary
changesNot all cases could be automatically fixed, and the changes also triggered a number of
prefer-const
errors that needed to be handled manually.