-
Hi all, I believe the topic of spellchecking has come up many times - this is difficult because of how many files we have, the number of coding languages we are working with and custom text we use, such as macros. If you run I've been using a local cspell config over the last few months, finding appropriate dictionaries ( Proposal for now:
Out of scope:
I've opened a PR now that can get the ball rolling on this https://github.com/mdn/content/pull/28487/files. It contains: .vscode/cspell.json. # the spellchecker config (dictionaries, ignore patterns)
.vscode/project-words.txt # custom words we want the spellchecker to ignore We may need to occasionally accept/ignore changes to these two files in content PRs going forward, but I hope that's acceptable. Using cspellFrom the terminal, it looks like: # install if you don't have it
npm install -g cspell@latest
# run against a directory
cspell lint --no-progress --unique --config .vscode/cspell.json ./files/en-us/web/accessibility Looking at IDE support in VSCode, for example, spellchecking and adding unknown words to a project dictionary is quite good via quick-fix (command + .) Or in the problems panel: Let me know what you think! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Thanks @bsmth. I think this is a good start and a good disclaimer to rule out the things that are out of scope at the moment 👍. At the minimum, we do need to run the spell checker locally (from the CLI or IDE). |
Beta Was this translation helpful? Give feedback.
-
I think we can close as done now. A good summary of activity on this here: https://github.com/mdn/content/commits/main/.vscode/cspell.json Thanks, everyone 🎉 |
Beta Was this translation helpful? Give feedback.
I think we can close as done now. A good summary of activity on this here:
https://github.com/mdn/content/commits/main/.vscode/cspell.json
Thanks, everyone 🎉