Skip to content

Commit 357c8ec

Browse files
committed
refactor: rename no-non-passive-high-frequency-events
1 parent c2d9be4 commit 357c8ec

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

docs/rules/no-non-passive-high-frequency-events.md renamed to docs/rules/require-passive-events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# No Non Passive High Frequency Events
1+
# Require Passive Events
22

3-
This rule disallows adding high frequency event listeners (`touchstart`, `touchmove`, `wheel`, `mousewheel`) without the `passive: true` option.
3+
This rule enforces adding `passive: true` to high frequency event listeners (`touchstart`, `touchmove`, `wheel`, `mousewheel`).
44

55
```js
66
// bad

lib/configs/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
'github/no-innerText': 'error',
1313
'github/unescaped-html-literal': 'error',
1414
'github/no-useless-passive': 'error',
15-
'github/no-non-passive-high-frequency-events': 'error',
15+
'github/require-passive-events': 'error',
1616
'github/prefer-observers': 'error'
1717
}
1818
}

0 commit comments

Comments
 (0)