Commit 4581521
committed
fix(ci) lock down [email protected] to fix test:types
[email protected] removed some of the RuleContext types (see
eslint/eslint#19910), causing the `test:types`
CI script to fail.
Since eslint-plugin-n still needs to support 8.x versions of eslint,
the implementation that relies on RuleContexts can't be removed.
A simple solution to unblock the CI is to annotate the few places that
rely on them with @ts-ignore.
When eslint 8.x support is dropped, these annotations should be removed.
That, in turn, will expose the code that relies on eslint 8.x APIs,
which should then also be removed.
As part of this PR, the eslint dependency was bumped to ^9.31.0.
This was done in order to prevent developers from developing locally
with older 9.x versions of eslint and accidentally introducing new code
that relies of these types with properly handling the type annotations
and having it fail in the CI.
Fixes #4591 parent 8185617 commit 4581521
3 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments