forked from primer/design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce markdownlinting (primer#345)
* Add markdownlint and markdownlint-github * Update node version to 14 * Bump markdownlint-github * Disable rules we don't currently care about * cleanup * Split markdownlint command per @jonrohan suggestion * Split jobs * fix: MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading * fix: MD045/no-alt-text Images should have alternate text (alt text) * fix: MD001/heading-increment/header-increment Heading levels should only increment by one level at a time [Expected: h3; Actual: h4] * fix: MD040/fenced-code-language Fenced code blocks should have a language specified * fix: GH002/no-generic-link-text Avoid using generic link text like or [For link: here] * fix: MD042/no-empty-links No empty links * fix: MD036/no-emphasis-as-heading/no-emphasis-as-header Emphasis used instead of a heading * fix: MD051/link-fragments Link fragments should be valid * fix: MD024/no-duplicate-heading/no-duplicate-header Multiple headings with the same content
- Loading branch information
Showing
16 changed files
with
190 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const githubMarkdownOpinions = require('@github/markdownlint-github') | ||
|
||
const options = githubMarkdownOpinions.init({ | ||
// Disable rules we don't currently care to enforce pertaining to stylistic things. | ||
'line-length': false, | ||
'blanks-around-headings': false, | ||
'blanks-around-lists': false, | ||
'no-trailing-spaces': false, | ||
'no-multiple-blanks': false, | ||
'no-trailing-punctuation': false, | ||
'single-trailing-newline': false, | ||
'ul-indent': false, | ||
'no-hard-tabs': false | ||
}) | ||
|
||
module.exports = { | ||
config: options, | ||
customRules: ["@github/markdownlint-github"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.