Skip to content

Commit 8107dec

Browse files
authored
Merge pull request #9573 from rust-lang/renovate/eslint-plugin-unicorn-56.x
Update dependency eslint-plugin-unicorn to v56
2 parents 1d87349 + 6d84f7b commit 8107dec

File tree

4 files changed

+45
-59
lines changed

4 files changed

+45
-59
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ module.exports = {
5656
'unicorn/no-nested-ternary': 'off',
5757
// disabled because of unfixable false positives
5858
'unicorn/prevent-abbreviations': 'off',
59+
// disabled because we are targeting only browsers at the moment
60+
'unicorn/prefer-global-this': 'off',
5961
// disabled because we don't want to go all-in on ES6 modules for Node.js code yet
6062
'unicorn/prefer-module': 'off',
6163
// disabled because it seems unnecessary

app/initializers/hashchange.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function findElementByFragmentName(document, name) {
1212
}
1313

1414
try {
15+
// eslint-disable-next-line unicorn/prefer-query-selector
1516
return document.querySelector(`#${name}`) || document.getElementsByName(name)[0];
1617
} catch {
1718
// Catches exceptions thrown when an anchor in a readme was invalid (see issue #3108)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"eslint-plugin-prettier": "5.2.1",
124124
"eslint-plugin-qunit": "8.1.2",
125125
"eslint-plugin-qunit-dom": "0.2.0",
126-
"eslint-plugin-unicorn": "55.0.0",
126+
"eslint-plugin-unicorn": "56.0.0",
127127
"globby": "14.0.2",
128128
"loader.js": "4.7.0",
129129
"match-json": "1.3.7",

pnpm-lock.yaml

Lines changed: 41 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)