-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore: migrate markdown-spellcheck to cspell #1386
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
Conversation
- Replace outdated package markdown-spellcheck with cspell - Enable spellcheck for comments in js and ts files - Enable spellcheck for markdown files with exclusion of code blocks - Fix spell errors in comments - Add note to CONTRIBUTING.md about spellchecking plugin for vscode - Add `streetsidesoftware.code-spell-checker` as recommended vscode plugin
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just leaving a couple of comments, but nothing I would feel strongly about. (And I'm not a maintainer)
packages/typescript-estree/src/create-program/createWatchProgram.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so many spelling errors.. haha
Thanks for this! LGTM.
Thanks for looking for a maintained alternative. I was thinking at the time that it'd be great to check comments, so this is a great enhancement.
Currently used
markdown-spellcheck
seems to be no longer maintained and uses dictionaries and dependencies that are outdated.I prepared PR to
markdown-spellcheck
that fixes issues, updates dictionaries and dependencies lukeapage/node-markdown-spellcheck#135 but so far there is no response from author/maintainers.Difference between
markdown-spellcheck
andcspell
markdown-spellcheck
can only parse and do spell checking on markdown files.cspell
on other hand is used to check spelling in code of any kind, that allowed me to add spellchecking for comments withing ts/js files in project.Additionally
cspell
comes with vscode plugin that should improve workflow by showing errors while writing.New configuration:
Spellchecking uses en-us dictionary with additional support for
typescript
,software
,node
,npm
,filetypes
terms.Notable changes:
streetsidesoftware.code-spell-checker
as recommended vscode pluginnote:
I fixed issues in block code of markdown files before disabling checking for it:
numeber
->number
markdown-spellcheck
has been introduced in #1324