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

Linting Documentation #19543

Merged
merged 2 commits into from
Jan 10, 2020
Merged

Linting Documentation #19543

merged 2 commits into from
Jan 10, 2020

Conversation

mkaz
Copy link
Member

@mkaz mkaz commented Jan 9, 2020

Description

A first pass on seeing what errors the new npm run lint-md command introduces with #19518

The commas, quotes, and whitespace all seem to be accurate lint issues.

One issue is the mix of ES5 code and ESNext together, the function and variable definitions don't match the lint rules, for example using var instead of `let.

How has this been tested?

Run npm run lint-md to see recommendations
This PR reduces the issues on a small set of files

Types of changes

Documentation lint changes.

@mkaz mkaz added the [Type] Developer Documentation Documentation for developers label Jan 9, 2020
Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, I’m glad we are going to be able to catch issues during development 👍

Copy link
Member

@ntwb ntwb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼

p.s. I'm interested see how Prettier performs with code in markdown once merged 😏

@mkaz mkaz merged commit 19c40af into master Jan 10, 2020
@mkaz mkaz deleted the fix/lint-docs-1 branch January 10, 2020 13:37
@ellatrix ellatrix added this to the Gutenberg 7.3 milestone Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Developer Documentation Documentation for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants