Skip to content

Commit 4fae15c

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/github/prettier-config-0.0.6
2 parents 2f4fe58 + 932fc5b commit 4fae15c

7 files changed

Lines changed: 214 additions & 198 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [12.x, 14.x, 16.x]
15+
node-version: [14, 16, 18]
1616

1717
steps:
1818
- uses: actions/checkout@v3

docs/rules/no-useless-passive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This rule disallows setting `passive: true` for events on which it will have no effect.
44

5-
Events where `passive: true` has an effect are: `touchstart`, `touchmove`, `wheel`, and `mousewheel`.
5+
Events where `passive: true` has an effect are: `touchstart`, `touchmove`, `touchenter`, `touchend`, `touchleave`, `wheel`, and `mousewheel`.
66

77
## Rule Details
88

docs/rules/require-passive-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Require Passive Events
22

3-
This rule enforces adding `passive: true` to high frequency event listeners (`touchstart`, `touchmove`, `wheel`, `mousewheel`).
3+
This rule enforces adding `passive: true` to high frequency event listeners (`touchstart`, `touchmove`, `touchenter`, `touchend`, `touchleave`, `wheel`, `mousewheel`).
44

55
## Rule Details
66

lib/configs/recommended.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818
'eslint-comments/no-unused-disable': 'error',
1919
'eslint-comments/no-unused-enable': 'error',
2020
'eslint-comments/no-use': ['error', {allow: ['eslint', 'eslint-disable-next-line', 'eslint-env', 'globals']}],
21-
'filenames/match-regex': ['error', '^[a-z0-9-]+(.d|.config)?$'],
21+
'filenames/match-regex': ['error', '^[a-z0-9-]+(.[a-z0-9-]+)?$'],
2222
'func-style': ['error', 'declaration', {allowArrowFunctions: true}],
2323
'github/array-foreach': 'error',
2424
'github/no-implicit-buggy-globals': 'error',

lib/rules/no-useless-passive.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
const passiveEventListenerNames = new Set(['touchstart', 'touchmove', 'wheel', 'mousewheel'])
1+
const passiveEventListenerNames = new Set([
2+
'touchstart',
3+
'touchmove',
4+
'touchenter',
5+
'touchend',
6+
'touchleave',
7+
'wheel',
8+
'mousewheel'
9+
])
210

311
const propIsPassiveTrue = prop => prop.key && prop.key.name === 'passive' && prop.value && prop.value.value === true
412

lib/rules/require-passive-events.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
const passiveEventListenerNames = new Set(['touchstart', 'touchmove', 'wheel', 'mousewheel'])
1+
const passiveEventListenerNames = new Set([
2+
'touchstart',
3+
'touchmove',
4+
'touchenter',
5+
'touchend',
6+
'touchleave',
7+
'wheel',
8+
'mousewheel'
9+
])
210

311
const propIsPassiveTrue = prop => prop.key && prop.key.name === 'passive' && prop.value && prop.value.value === true
412

0 commit comments

Comments
 (0)