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

No documentation on cspell.json #1695

Open
GeorgeXCV opened this issue May 3, 2024 · 2 comments
Open

No documentation on cspell.json #1695

GeorgeXCV opened this issue May 3, 2024 · 2 comments

Comments

@GeorgeXCV
Copy link

I see cspell.json referenced and I assume it is the config file but no documentation on it in the ReadMe. Where should the file be? How can I exclude words and file directories?

@Jason3S
Copy link
Contributor

Jason3S commented May 3, 2024

This action uses cspell to do the spell checking.

I suggest creating: .config/cspell.config.yaml. The action will find it.

.config/cspell.config.yaml

ignorePaths: # glob patterns to ignore
  - cspell*.{yaml,json}
  - node_modules
words: # words to add to dictionary
  - MyCompanyName
ignoreWords: # words to ignore, but not suggest
  - todos
flagWords: # words to flag as forbidden with optional suggestions indicated by `->`.
  - blacklist->denylist
  - whitelist->allowlist
  - café->cafe
  - bluelist->greenList
  - Bluelist->GreenList

@Jason3S
Copy link
Contributor

Jason3S commented May 3, 2024

@GeorgeXCV,

You make a good point. An example config in the README would be useful.

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

2 participants