Skip to content

Commit 7e0cf97

Browse files
committed
Generic/ESLint: fix tests
The ESLint project has released a new major, which is breaking test runs for PHPCS 3.x. As support for JS has been dropped in PHPCS 4.x anyway and the sniff is formally deprecated, investing time in making the tests cross-version compatible is not justifiable. This commit fixes the ESLint version used in the tests to the last release in the _previous_ major. This should get the tests passing again. Refs: * https://eslint.org/blog/2026/02/eslint-v10.0.0-released/
1 parent 9c42a80 commit 7e0cf97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ jobs:
218218
run: >
219219
npm install -g --fund false
220220
csslint
221-
eslint
221+
eslint@9.x
222222
jshint
223223
224224
# Install dependencies and handle caching in one go.
@@ -331,7 +331,7 @@ jobs:
331331
run: >
332332
npm install -g --fund false
333333
csslint
334-
eslint
334+
eslint@9.x
335335
jshint
336336
337337
# Install dependencies and handle caching in one go.

0 commit comments

Comments
 (0)