-
-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Definition for rule 'jsdoc/newline-after-description' #1031
Comments
The rule was removed. Are you relying on a config which uses it? |
I.e., what exactly does your .eslintrc or eslint.config.js file look like? |
I see, I missed that. Thank you. |
For anyone else looking for a solution to this, see https://github.com/gajus/eslint-plugin-jsdoc/releases/tag/v42.0.0 |
Will be causing error starting with eslint-plugin-jsdoc@43 gajus/eslint-plugin-jsdoc#1031
Will be causing error starting with eslint-plugin-jsdoc@43 gajus/eslint-plugin-jsdoc#1031
If it helps anyone else… I used to have {
'jsdoc/tag-lines': [
'error',
'any',
{
startLines: 1,
},
],
} and I believe these are equivalent? The docs for the update upon further reflection, I don't think these are equivalent. I rarely use tags. I mostly want to enforce that JSDoc comments have a one-line description on the first line, followed by a blank, then a longer description if necessary: /**
* one-line description goes here.
*
* longer description goes here.
* probably spans many lines.
* may or may not include any tags.
*/ In particular I want to disallow comments like this: /**
* just a long description across many lines
* with no attempt made to write a one-line summary.
*/ This behavior was enforced with |
Will be causing error starting with eslint-plugin-jsdoc@43 gajus/eslint-plugin-jsdoc#1031
Will be causing error starting with eslint-plugin-jsdoc@43 gajus/eslint-plugin-jsdoc#1031
Will be causing error starting with eslint-plugin-jsdoc@43 gajus/eslint-plugin-jsdoc#1031
Will be causing error starting with eslint-plugin-jsdoc@43 gajus/eslint-plugin-jsdoc#1031
Will be causing error starting with eslint-plugin-jsdoc@43 gajus/eslint-plugin-jsdoc#1031
Will be causing error starting with eslint-plugin-jsdoc@43 gajus/eslint-plugin-jsdoc#1031
Will be causing error starting with eslint-plugin-jsdoc@43 gajus/eslint-plugin-jsdoc#1031
…emoved as seen here: gajus/eslint-plugin-jsdoc#1031 BREAKING CHANGE: remove "jsdoc/newline-after-description" rule Issues: MOL-29362
…emoved as seen here: gajus/eslint-plugin-jsdoc#1031 BREAKING CHANGE: remove "jsdoc/newline-after-description" rule Issues: MOL-29362
With "eslint-plugin-jsdoc": "43.0.6" there seems to be an error with this rule and linting:
Example:
To pass linting I had to turn off the rule off in eslintrc.json:
"jsdoc/newline-after-description": "off",
Environment
npm: '9.5.1',
node: '18.16.0'
and:
"eslint": "^8.38.0",
"eslint-plugin-jsdoc": "43.0.6"
The text was updated successfully, but these errors were encountered: