-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Labels
Description
Motivation
Support standard ESLint exceptions per line (eslint-disable-next-line and/or eslint-disable-line)
Current behavior
It's only possible to add an exception for the whole file, not for specific lines/comments.
Desired behavior
To be able to skip jsdoc rules validation for specific lines
Alternatives considered
Given jsdoc/reject-any-type rule, I've tried // eslint-disable-next-line jsdoc/reject-any-type and // eslint-disable-line jsdoc/reject-any-type without success.
/**
* Example JSDOC
* @param {Response} response Repuesta
// eslint-disable-next-line jsdoc/reject-any-type
* @returns {Promise<any>|void} Promesa // eslint-disable-line jsdoc/reject-any-type
*/
export const dummy = response => {
if (response.ok) {
return response.json();
}
}; 5:1 warning Prefer a more specific type to `any` jsdoc/reject-any-type
Additional information
Related: #658
phil294