node-lintspaces icon indicating copy to clipboard operation
node-lintspaces copied to clipboard

Handle multiline spaced comments

Open Bartheleway opened this issue 1 year ago • 2 comments

This is my attempt to fix #297

To easily check the difference between old and new check, you can go to the code on line 107 and put in comment the insideComment = true flag so it never adapt to comment section. In such case it will fail like the old code.

It should handle all sorts of multiline spaced comments:

/**
 * Like this
 */

/**
* Or this
*/

/**
*Even this
*/

/**
 *And finally that
*/

Bartheleway avatar Oct 27 '24 15:10 Bartheleway