-
-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Description
Happened when updating from 30.7.6
to 31.2.1
- Reproduction Repo: https://github.com/nwutils/create-desktop-shortcuts
My existing block
/**
* Creates OS based shortcuts for files, folders, and applications.
*
* @param {object} options Options object for each OS.
* @return {boolean} True = success, false = failed to create the icon
*/
After running -fix
with check-line-alignment
enabled it outputs this:
/**
* Creates OS based shortcuts for files, folders, and applications.
*
* @param {object} options Options object for each OS.
* @return {boolean} True = success, false = failed to create the icon
*/
It was nice and vertically aligned, but, ironically, the linting rule that attempts to enforce such behavior, instead breaks it across all files.
Another example:
/**
* Returns the value stored in the process.env for a given
* environment variable.
*
* @param {string} withPercents '%USERNAME%'
* @param {string} withoutPercents 'USERNAME'
* @return {string} 'bob' || '%USERNAME%'
*/
is "fixed" to
/**
* Returns the value stored in the process.env for a given
* environment variable.
*
* @param {string} withPercents '%USERNAME%'
* @param {string} withoutPercents 'USERNAME'
* @return {string} 'bob' || '%USERNAME%'
*/
'rules': {
'jsdoc/check-line-alignment': 1
}
Environment
- Node.js 14.15.4
- ESLint: 7.18.0
- eslint-plugin-jsdoc: 31.2.1