You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
{defaultMessage: 'Interval',id: 'Yns09/',description: 'A table column title'}
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!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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