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

Update dependencies and require Node.js 6 #22

Merged

Conversation

transitive-bullshit
Copy link
Collaborator

Fixes #21

The bulk of this PR is updating remark-lint's usage to latest, where all rules are no longer bundled by default.

For reference, here is the list of official remark-lint plugins that are not currently being used:

remark-lint-fenced-code-flag
remark-lint-final-definition
remark-lint-first-heading-level
remark-lint-heading-increment
remark-lint-linebreak-style
remark-lint-list-item-spacing
remark-lint-maximum-heading-length
remark-lint-maximum-line-length
remark-lint-no-consecutive-blank-lines
remark-lint-no-duplicate-headings-in-section
remark-lint-no-duplicate-headings
remark-lint-no-empty-url
remark-lint-no-heading-like-paragraph
remark-lint-no-html
remark-lint-no-missing-blank-lines
remark-lint-no-paragraph-content-indent
remark-lint-no-reference-like-url
remark-lint-no-shortcut-reference-image
remark-lint-no-shortcut-reference-link
remark-lint-no-tabs

There may be more, but this is just considering plugins listed in the official remark-lint monorepo.

remark-lint-no-duplicate-headings-in-section and several others should probably be added, but I'll leave that for a subsequent PR.

All tests pass, and the CLI appears to be working as expected for me locally.

@sindresorhus I plan on adding more rules as a follow-up to this, but updating awesome-lint to latest deps seemed to be a reasonable prerequisite.

file.warn('Incorrect badge source', child2);
return;
}
if (node.depth !== 1 || child.type !== 'link' || child.url !== badgeUrl) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i only made this change because xo was complaining about too much nesting depth here

}
}
}

if (!hasBadge) {
file.warn('Missing Awesome badge after the main heading', node);
file.message('Missing Awesome badge after the main heading', node);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

file.warn no longer exists

@sindresorhus sindresorhus changed the title Update dependencies Update dependencies and require Node.js 6 Jul 29, 2018
@sindresorhus sindresorhus merged commit c5c87d8 into sindresorhus:master Jul 29, 2018
@sindresorhus
Copy link
Owner

Awesome! Looks good :)

@transitive-bullshit transitive-bullshit deleted the feature/update-deps branch July 29, 2018 08:04
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.

2 participants