eslint-plugin-es icon indicating copy to clipboard operation
eslint-plugin-es copied to clipboard

Fix usage for ESLint v9.0.0 or later

Open mlahargou opened this issue 3 months ago • 0 comments

https://eslint.org/docs/latest/use/troubleshooting/v9-rule-api-changes

ESLint v9.0.0 introduces changes to the rules API that plugin rules use, which included moving some methods from the context object to the sourceCode object. If you’re seeing one of these errors, that means the plugin has not yet been updated to use the new rules API.


I'm getting the following error with this plugin on v9 of eslint:

TypeError: context.getScope is not a function
Occurred while linting /path/to/file.js:1
Rule: "es/no-regexp-lookbehind-assertions"

mlahargou avatar Oct 26 '24 00:10 mlahargou