Skip to content

Add markdown spell check & linting - #82

Merged
chancancode merged 2 commits into
ember-learn:masterfrom
maxwondercorn:add-linting
Oct 25, 2019
Merged

chancancode merged 2 commits into
ember-learn:masterfrom
maxwondercorn:add-linting

Conversation

@maxwondercorn

Copy link
Copy Markdown
Contributor

Add the same markdown linting setup as used in guides-source and cli-guides. Run the lint:md script to manually lint. Add script to CI when you want to automate it. Fixes #13

  • Added common spell checking/linting setup
  • Updated CONTRIBUTING.md with linting information/requirements
  • Linted and corrected existing content. Reference errors still exist
  • Added repo only words to the .local.dic dictionary so spell check passes. Also spell checked and included words from un-merged Part-2 branch

Notes:

  • See linting & spelling errors sections in CONTRIBUTING.md
  • README and CONTRIBUTING are ignored (.remarkignore) by the linter. I did lint them and made corrections
  • I will open a PR on guides-source to add the tutorial .local.dic words to the guides dictionary. PR Updates to markdown linting guides-source#1127 needs to be merged first

@chancancode

Copy link
Copy Markdown
Collaborator

The upstream PRs has been merged!

@chancancode

Copy link
Copy Markdown
Collaborator

@maxwondercorn Thanks again for working on this! Since the upstream PRs are merged, is there anything else we need to do here?

@maxwondercorn

Copy link
Copy Markdown
Contributor Author

@chancancode If this repo will be standalone this PR should be merged so contributors can verify the linting before it's merged into guides-source.

New content linting errors can be fixed before merging. If a new word is flagged as a spelling error it needs to be added to tutorial's .local-dic. Then a guides-source PR created to add the word(s) to that .local-dic.

I know this a bit convoluted and I hope my explanation makes sense. This would probably be easier if we were using a mono repo that could share a single .local-dic.

Of course there may another way around this with some git "magic" that I don't know about 🤔 What I don't know about git far exceeds what I do know 😀

@chancancode

Copy link
Copy Markdown
Collaborator

Yep that makes sense to me! I just wanted to clarify that when you say "PR ember-learn/guides-source#1127 needs to be merged first", you didn't mean we need to "rebase" this PR after merging the upstream stuff. I'll work on getting this merged then! Thank you again for helping out on this, this is going to be super useful.

* Added markdown linting
* Linted and corrected existing content
* Fixed package.json error
* Word mismatched with guides-source dictionary
@maxwondercorn

Copy link
Copy Markdown
Contributor Author

We just wanted to make sure the guides-source PR was merged because it already included all the "misspelled" words from the tutorial in it's .local.dic file.

If there isn't any new "misspelled" words you shouldn't have to do anything to pass linting on the next merge.

Also, fixed issue with the `[TODO: ...]` undefined references.
@chancancode

Copy link
Copy Markdown
Collaborator

@maxwondercorn I squashed/rebased your branch and set it up to run as part of the build! Hopefully it will pass on CI and we should be good to merge! (Not sure why the squashed commit didn't show your GH profile correctly?!)

@chancancode
chancancode merged commit 323d211 into ember-learn:master Oct 25, 2019
@maxwondercorn

Copy link
Copy Markdown
Contributor Author

👍 It looks like the GH profile is wonky because I updated my avatar/picture after the PR was created.

@maxwondercorn
maxwondercorn deleted the add-linting branch October 25, 2019 23:18
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

Successfully merging this pull request may close these issues.

Set up remark to use roughly the same settings/linters as guides-source

2 participants