Replies: 1 comment
-
Something like:
ignoreRegExpList:
- >
/^\s+id:.*/gm |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using the cspell plugin for ESLint, and I have a case where I want to exclude certain keys like id from spell checking in JSON objects. Specifically, my code includes auto-generated IDs that should not be checked for spelling, for example:
I would like to exclude the value of the id key from spell checking without disabling checks for other keys like defaultMessage and description.
I’ve tried using ignoreRegExpList, but it seems to work only on individual words, not entire lines. Is there a way to configure cspell or ESLint to ignore values assigned to a specific key (id) across my codebase?
Any guidance or suggestions on how to achieve this would be greatly appreciated!
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions