-
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-modern-dom-apis
ESLint plugin rule
#15031
Enable the unicorn/prefer-modern-dom-apis
ESLint plugin rule
#15031
Conversation
4774cfb
to
0d0807e
Compare
This rule will help enforce slightly shorter code, and according to MDN both `Element.replaceWith()` and `Element.before()` are available in all browsers that we currently support. Please find additional information here: - https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-dom-apis.md - https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith - https://developer.mozilla.org/en-US/docs/Web/API/Element/before
0d0807e
to
4d39898
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/9389a65d31e9796/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/1ae91d9f7337c49/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/9389a65d31e9796/output.txt Total script time: 26.42 mins
Image differences available at: http://54.241.84.105:8877/9389a65d31e9796/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/1ae91d9f7337c49/output.txt Total script time: 28.34 mins
|
Looks good! |
This rule will help enforce slightly shorter code, and according to MDN both
Element.replaceWith()
andElement.before()
are available in all browsers that we currently support.Please find additional information here: