Closed simon-abbott closed 10 months ago
I tested 46.7.0 as well, and that worked just fine. I suspect it's an issue with 8dbcb6f31d8e75b6a12dc0cfa19ace736ed0e9c6.
:tada: This issue has been resolved in version 46.8.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
The method getSourceCode
was deprecated and can be avoided in more recent versions of ESLint, but apparently the replacement hasn't been around for very long.
Expected behavior
The rule should run properly.
Actual behavior
ESLint crashes with the error
TypeError: Error while loading rule 'jsdoc/check-param-names': Cannot destructure property 'lines' of 'sourceCode' as it is undefined.
ESLint Config
ESLint sample
Environment
eslint-plugin-jsdoc
version: 46.8.1