forked from mysticatea/eslint-plugin-node
-
-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
Description
Environment
Node version: 24.4.1
npm version: 11.4.2
ESLint version: 9.31.0
eslint-plugin-n version: 17.21.0
Operating System: macOS
What rule do you want to report?
The CI process - test:types
Link to Minimal Reproducible Example
npm run test:types
What did you expect to happen?
The CI should pass
Participation
- I am willing to submit a pull request for this issue.
Additional comments
Since [email protected] was released, the CI fails:
➜ eslint-plugin-n git:(master) npm run test:types
npm warn using --force Recommended protections disabled.
> [email protected] test:types
> tsc --noEmit --emitDeclarationOnly false
lib/rules/no-path-concat.js:201:67 - error TS2339: Property 'getScope' does not exist on type 'PluginRuleContext<{ RuleOptions: unknown[]; }>'.
201 sourceCode.getScope?.(programNode) ?? context.getScope()
~~~~~~~~
lib/util/eslint-compat.js:20:69 - error TS2339: Property 'getScope' does not exist on type 'RuleContext'.
20 return sourceCode.getScope?.(node || sourceCode.ast) || context.getScope()
~~~~~~~~
lib/util/eslint-compat.js:28:55 - error TS2339: Property 'getAncestors' does not exist on type 'RuleContext'.
28 return sourceCode.getAncestors?.(node) || context.getAncestors()
~~~~~~~~~~~~
Found 3 errors in 2 files.
Errors Files
1 lib/rules/no-path-concat.js:201
2 lib/util/eslint-compat.js:20
scagood