SonarSource / eslint-plugin-sonarjs

SonarJS rules for ESLint
GNU Lesser General Public License v3.0
1.2k stars 73 forks source link

Working with ESLint 9 #438

Closed brettz9 closed 6 months ago

brettz9 commented 9 months ago

I want to request a feature.

Projects wishing to future-proof their code are now unable to use SonarJS with the alpha versions of ESLint 9.0.0 at least in one instance because of some API changes (dropping context.getScope; see https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/#context.getscope() ). This is the more serious road-block as there are no workarounds.

vdiez commented 1 month ago

hi @aarongoldenthal, yes we are aware. Still, thanks for the heads-up

Pnlvfx commented 1 month ago

Version 2.0.2 is out, please let us know if are still facing type issues.

Cheers.

Unsafe argument of type error typed assigned to a parameter of type ConfigWithExtends.eslint@typescript-eslint/no-unsafe-argument

The type error is gone but now the config is returning any.