Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion over skipWordIfMatch #77

Open
charliematters opened this issue Sep 28, 2021 · 0 comments
Open

Confusion over skipWordIfMatch #77

charliematters opened this issue Sep 28, 2021 · 0 comments

Comments

@charliematters
Copy link

Hi,

I want to be told that I have a spelling error in this comment:

// Some of the IDs have speling errors

For the sake of argument, I don't want it to complain about "IDs", so I add a rule to skipWordIfMatch:

skipWordIfMatch: ["^IDs$"]

The documentation says "the plugin will try to match every single word that is found in the nodes (...) and will not check the single word if matched." So I'd assume that because "IDs" matches /^IDs$/ it will not check that word. Instead I get:

You have a misspelled word: Ds on Comment

How do I exclude certain exact matches from the spell check without putting them in "skipIfMatch" (which means my other spelling error gets missed)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant