Skip to content

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

Merged
merged 5 commits into from
Dec 29, 2019
Merged

chore: migrate markdown-spellcheck to cspell #1386

merged 5 commits into from
Dec 29, 2019

Conversation

armano2
Copy link
Collaborator

@armano2 armano2 commented Dec 28, 2019

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 and cspell

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:

  • 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
  • There is no interactive mode

note:

I fixed issues in block code of markdown files before disabling checking for it: numeber -> number

markdown-spellcheck has been introduced in #1324

- 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
@typescript-eslint

This comment has been minimized.

@armano2 armano2 changed the title chore: migrate spellcheck to cspell chore: migrate markdown-spellcheck to cspell Dec 28, 2019
@armano2 armano2 added dependencies Issue about dependencies of the package tests anything to do with testing labels Dec 28, 2019
Copy link
Contributor

@platinumazure platinumazure left a 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)

@armano2 armano2 requested a review from bradzacher December 29, 2019 03:48
Copy link
Member

@bradzacher bradzacher left a 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.

@bradzacher bradzacher merged commit b1c8c0a into typescript-eslint:master Dec 29, 2019
@armano2 armano2 deleted the spellcheck branch December 29, 2019 05:15
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Issue about dependencies of the package tests anything to do with testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants