Skip to content

Commit 6d84f7b

Browse files
committed
eslint-plugin-unicorn: Disable new rules
1 parent e229858 commit 6d84f7b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
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)

0 commit comments

Comments
 (0)