Tresjs / cientos

Collection of useful helpers and fully functional, ready-made abstractions for TresJS
https://cientos.tresjs.org/
MIT License
241 stars 34 forks source link

New linter rules erase some JSDoc formatting #398

Open andretchen0 opened 2 months ago

andretchen0 commented 2 months ago

Problem

A linter rule added in #388 erases valid Markdown.

Italics

This is an italicized word in valid Markdown in a JSDoc.

/**
 * *italic*
 **/
Screenshot 2024-05-02 at 23 01 10

Linted:

/**
 * italic*
 **/
Screenshot 2024-05-02 at 23 02 12

Bulleted lists

This is a bulleted list in valid Markdown in a JSDoc.

/**
 * * list item 1
 * * list item 2
 * * list item 3
 **/
Screenshot 2024-05-02 at 23 03 16

Linted:

/**
 * list item 1
 * list item 2
 * list item 3
 **/
Screenshot 2024-05-02 at 23 03 50

Solution

See also

Steps to reproduce

/**
 * * list item 1
 * * list item 2
 * * list item 3
 **/
interface List {}
/**
 * list item 1
 * list item 2
 * list item 3
 **/
interface List {}

Code of Conduct

alvarosabu commented 2 months ago

Hi @andretchen0 thanks for raising this, we could change this setting directly on https://github.com/Tresjs/eslint-config so the whole ecosystem is protected against the issue, wdyt?

andretchen0 commented 2 months ago

Hi @andretchen0 thanks for raising this, we could change this setting directly on https://github.com/Tresjs/eslint-config so the whole ecosystem is protected against the issue, wdyt?

Sounds good.