streetsidesoftware / cspell

A Spell Checker for Code!
https://cspell.org
MIT License
1.25k stars 99 forks source link

Words containing HTML Symbol Entities should not be marked as an error #4104

Open LucasOe opened 1 year ago

LucasOe commented 1 year ago

When writing text in HTML it is common for apostrophes and other words to be replaced by escape codes. Currently, words like "doesn't" get marked as an error. In my opinion it would be best if the word got treated the same as "doesn't" in this example.

mikeybinns commented 1 year ago

I second this, and also it might be good to add a config parameter for "ignoredCharacters" for people to work around this. You say in the docs on "How it works" that All symbols and punctuation are ignored. so I assume this means there's some kind of list of removed characters, so hopefully it's possible to extend that list.

ADTC commented 6 months ago

Same here @Jason3S, I had to add doesn in my configuration to overcome this. I shouldn't have to. If I use a regular quote ' it passes spell check but ES Lint shows error:

image

(Link for react/no-unescaped-entities)