lasselupe33 / eslint-plugin-comment-length

MIT License
13 stars 3 forks source link

False error when JSDoc comment line length is exactly 80 chars #6

Closed jaydenseric closed 11 months ago

jaydenseric commented 12 months ago

I configure VS Code with a vertical ruler at 80 chars:

{
  "editor.rulers": [80]
}

As you can see, there is a false rule comment-length/limit-multi-line-comments error when the JSDoc comment line length is exactly 80 chars:

Screenshot 2023-07-04 at 7 24 15 am

I didn't see a false error like this until updating the ESLint plugin recently.

lasselupe33 commented 11 months ago

Hi @jaydenseric,

You're absolutely correct. A regression was introduced in the latest release. This off-by-one error has been fixed in v1.4.5.