Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4fae15c

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

File tree

Expand file treeCollapse file tree

7 files changed

+214
-198
lines changed
Filter options
Expand file treeCollapse file tree

7 files changed

+214
-198
lines changed

‎.github/workflows/nodejs.yml

Copy file name to clipboardExpand all lines: .github/workflows/nodejs.yml
+1-1Lines 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

Copy file name to clipboardExpand all lines: docs/rules/no-useless-passive.md
+1-1Lines 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

Copy file name to clipboardExpand all lines: docs/rules/require-passive-events.md
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/configs/recommended.js
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/rules/no-useless-passive.js
+9-1Lines 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

Copy file name to clipboardExpand all lines: lib/rules/require-passive-events.js
+9-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.