Closed
Description
What version of eslint-plugin-security are you using?
2.1.1
ESLint Environment
Node version: v20.12.1
npm version: 10.5.0
Local ESLint version: v9.0.0
Global ESLint version: -
Operating System: MacOS 14.4.1
What parser are you using?
@typescript-eslint/parser
What did you do?
Configuration
<!-- Paste your configuration here -->
<!-- Paste your code here -->
What did you expect to happen?
I expected the lint to run without errors
What actually happened?
Oops! Something went wrong! :(
ESLint: 9.0.0
TypeError: context.getScope is not a function
Occurred while linting /my/project/path/banner.ts:13
Rule: "security/detect-child-process"
at CallExpression (/my/project/path/node_modules/eslint-plugin-security/rules/detect-child-process.js:49:28)
at ruleErrorHandler (/my/project/path/node_modules/eslint/lib/linter/linter.js:1145:48)
at /my/project/path/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/my/project/path/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/my/project/path/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/my/project/path/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/my/project/path/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at runRules (/my/project/path/node_modules/eslint/lib/linter/linter.js:1184:40)
at Linter._verifyWithFlatConfigArrayAndWithoutProcessors (/my/project/path/node_modules/eslint/lib/linter/linter.js:1910:31)
Participation
- I am willing to submit a pull request for this issue.
Additional comments
No response