Update remaining references to refer to main branch as "main".

This commit is contained in:
David Anson 2020-08-11 22:52:29 -07:00
parent c7ec796cfc
commit 0acc578e52
8 changed files with 19 additions and 19 deletions

View file

@ -876,7 +876,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for more information.
[npm-image]: https://img.shields.io/npm/v/markdownlint.svg [npm-image]: https://img.shields.io/npm/v/markdownlint.svg
[npm-url]: https://www.npmjs.com/package/markdownlint [npm-url]: https://www.npmjs.com/package/markdownlint
[ci-image]: https://github.com/DavidAnson/markdownlint/workflows/CI/badge.svg?branch=master [ci-image]: https://github.com/DavidAnson/markdownlint/workflows/CI/badge.svg?branch=main
[ci-url]: https://github.com/DavidAnson/markdownlint/actions?query=branch%3Amaster [ci-url]: https://github.com/DavidAnson/markdownlint/actions?query=branch%3Amain
[license-image]: https://img.shields.io/npm/l/markdownlint.svg [license-image]: https://img.shields.io/npm/l/markdownlint.svg
[license-url]: https://opensource.org/licenses/MIT [license-url]: https://opensource.org/licenses/MIT

View file

@ -17,7 +17,7 @@
var newLineRe = /\r\n|\r|\n/; var newLineRe = /\r\n|\r|\n/;
var hashPrefix = "%m"; var hashPrefix = "%m";
var rulesMd = "https://github.com/DavidAnson/markdownlint" + var rulesMd = "https://github.com/DavidAnson/markdownlint" +
"/blob/master/doc/Rules.md"; "/blob/main/doc/Rules.md";
// Do-nothing function // Do-nothing function
function noop() {} function noop() {}
@ -173,7 +173,7 @@
"Content gets parsed and displayed in the upper-right box; rule violations (if any) show up in the lower-right box.", "Content gets parsed and displayed in the upper-right box; rule violations (if any) show up in the lower-right box.",
"Click a violation for information about it or click its line number to highlighted it in the lower-left box.", "Click a violation for information about it or click its line number to highlighted it in the lower-left box.",
"", "",
"> *Note*: [All rules](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md) are enabled except [MD013/line-length](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md013) and [MD002/first-heading-h1](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md002) (deprecated). ", "> *Note*: [All rules](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md) are enabled except [MD013/line-length](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md013) and [MD002/first-heading-h1](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md002) (deprecated). ",
"", "",
"", "",
"#### Resources", "#### Resources",

View file

@ -6,8 +6,8 @@
The [Markdown](https://en.wikipedia.org/wiki/Markdown) linter The [Markdown](https://en.wikipedia.org/wiki/Markdown) linter
[`markdownlint`](https://github.com/DavidAnson/markdownlint) offers a variety of built-in validation [`markdownlint`](https://github.com/DavidAnson/markdownlint) offers a variety of built-in validation
[rules](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md) and supports the [rules](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md) and supports the
creation of [custom rules](https://github.com/DavidAnson/markdownlint/blob/master/doc/CustomRules.md). creation of [custom rules](https://github.com/DavidAnson/markdownlint/blob/main/doc/CustomRules.md).
The internal rules share various helper functions; this package exposes those for reuse by custom rules. The internal rules share various helper functions; this package exposes those for reuse by custom rules.
## API ## API
@ -42,7 +42,7 @@ module.exports = {
}; };
``` ```
See also: [`markdownlint` built-in rule implementations](https://github.com/DavidAnson/markdownlint/tree/master/lib). See also: [`markdownlint` built-in rule implementations](https://github.com/DavidAnson/markdownlint/tree/main/lib).
## Tests ## Tests

View file

@ -25,7 +25,7 @@ const schema = {
"description": "JSON Schema URI (used by some editors)", "description": "JSON Schema URI (used by some editors)",
"type": "string", "type": "string",
"default": "https://raw.githubusercontent.com/DavidAnson/markdownlint" + "default": "https://raw.githubusercontent.com/DavidAnson/markdownlint" +
"/master/schema/markdownlint-config-schema.json" "/main/schema/markdownlint-config-schema.json"
} }
}, },
"additionalProperties": false "additionalProperties": false

View file

@ -15,7 +15,7 @@
"$schema": { "$schema": {
"description": "JSON Schema URI (used by some editors)", "description": "JSON Schema URI (used by some editors)",
"type": "string", "type": "string",
"default": "https://raw.githubusercontent.com/DavidAnson/markdownlint/master/schema/markdownlint-config-schema.json" "default": "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json"
}, },
"MD001": { "MD001": {
"description": "MD001/heading-increment/header-increment - Heading levels should only increment by one level at a time", "description": "MD001/heading-increment/header-increment - Heading levels should only increment by one level at a time",

View file

@ -2811,12 +2811,12 @@ tape("someCustomRulesHaveValidUrl", (test) => {
if (rule === customRules.anyBlockquote) { if (rule === customRules.anyBlockquote) {
test.equal( test.equal(
rule.information.href, rule.information.href,
`${homepage}/blob/master/test/rules/any-blockquote.js` `${homepage}/blob/main/test/rules/any-blockquote.js`
); );
} else if (rule === customRules.lettersEX) { } else if (rule === customRules.lettersEX) {
test.equal( test.equal(
rule.information.href, rule.information.href,
`${homepage}/blob/master/test/rules/letters-E-X.js` `${homepage}/blob/main/test/rules/letters-E-X.js`
); );
} }
}); });
@ -2905,7 +2905,7 @@ tape("customRulesV1", (test) => {
"ruleAlias": "any-blockquote", "ruleAlias": "any-blockquote",
"ruleDescription": "Rule that reports an error for any blockquote", "ruleDescription": "Rule that reports an error for any blockquote",
"ruleInformation": "ruleInformation":
`${homepage}/blob/master/test/rules/any-blockquote.js`, `${homepage}/blob/main/test/rules/any-blockquote.js`,
"errorDetail": "Blockquote spans 1 line(s).", "errorDetail": "Blockquote spans 1 line(s).",
"errorContext": "> Block", "errorContext": "> Block",
"errorRange": null }, "errorRange": null },
@ -2962,7 +2962,7 @@ tape("customRulesV1", (test) => {
"ruleAlias": "letter-E-letter-X", "ruleAlias": "letter-E-letter-X",
"ruleDescription": "ruleDescription":
"Rule that reports an error for lines with the letters 'EX'", "Rule that reports an error for lines with the letters 'EX'",
"ruleInformation": `${homepage}/blob/master/test/rules/letters-E-X.js`, "ruleInformation": `${homepage}/blob/main/test/rules/letters-E-X.js`,
"errorDetail": null, "errorDetail": null,
"errorContext": "text", "errorContext": "text",
"errorRange": null }, "errorRange": null },
@ -2971,7 +2971,7 @@ tape("customRulesV1", (test) => {
"ruleAlias": "letter-E-letter-X", "ruleAlias": "letter-E-letter-X",
"ruleDescription": "ruleDescription":
"Rule that reports an error for lines with the letters 'EX'", "Rule that reports an error for lines with the letters 'EX'",
"ruleInformation": `${homepage}/blob/master/test/rules/letters-E-X.js`, "ruleInformation": `${homepage}/blob/main/test/rules/letters-E-X.js`,
"errorDetail": null, "errorDetail": null,
"errorContext": "text", "errorContext": "text",
"errorRange": null } "errorRange": null }
@ -3021,7 +3021,7 @@ tape("customRulesV2", (test) => {
"ruleNames": [ "any-blockquote" ], "ruleNames": [ "any-blockquote" ],
"ruleDescription": "Rule that reports an error for any blockquote", "ruleDescription": "Rule that reports an error for any blockquote",
"ruleInformation": "ruleInformation":
`${homepage}/blob/master/test/rules/any-blockquote.js`, `${homepage}/blob/main/test/rules/any-blockquote.js`,
"errorDetail": "Blockquote spans 1 line(s).", "errorDetail": "Blockquote spans 1 line(s).",
"errorContext": "> Block", "errorContext": "> Block",
"errorRange": null }, "errorRange": null },
@ -3071,7 +3071,7 @@ tape("customRulesV2", (test) => {
"ruleNames": [ "letters-E-X", "letter-E-letter-X", "contains-ex" ], "ruleNames": [ "letters-E-X", "letter-E-letter-X", "contains-ex" ],
"ruleDescription": "ruleDescription":
"Rule that reports an error for lines with the letters 'EX'", "Rule that reports an error for lines with the letters 'EX'",
"ruleInformation": `${homepage}/blob/master/test/rules/letters-E-X.js`, "ruleInformation": `${homepage}/blob/main/test/rules/letters-E-X.js`,
"errorDetail": null, "errorDetail": null,
"errorContext": "text", "errorContext": "text",
"errorRange": null }, "errorRange": null },
@ -3079,7 +3079,7 @@ tape("customRulesV2", (test) => {
"ruleNames": [ "letters-E-X", "letter-E-letter-X", "contains-ex" ], "ruleNames": [ "letters-E-X", "letter-E-letter-X", "contains-ex" ],
"ruleDescription": "ruleDescription":
"Rule that reports an error for lines with the letters 'EX'", "Rule that reports an error for lines with the letters 'EX'",
"ruleInformation": `${homepage}/blob/master/test/rules/letters-E-X.js`, "ruleInformation": `${homepage}/blob/main/test/rules/letters-E-X.js`,
"errorDetail": null, "errorDetail": null,
"errorContext": "text", "errorContext": "text",
"errorRange": null } "errorRange": null }

View file

@ -10,7 +10,7 @@ module.exports = {
"description": "Rule that reports an error for any blockquote", "description": "Rule that reports an error for any blockquote",
"information": new URL( "information": new URL(
"https://github.com/DavidAnson/markdownlint" + "https://github.com/DavidAnson/markdownlint" +
"/blob/master/test/rules/any-blockquote.js" "/blob/main/test/rules/any-blockquote.js"
), ),
"tags": [ "test" ], "tags": [ "test" ],
"function": (params, onError) => { "function": (params, onError) => {

View file

@ -9,7 +9,7 @@ module.exports = {
"description": "Rule that reports an error for lines with the letters 'EX'", "description": "Rule that reports an error for lines with the letters 'EX'",
"information": new URL( "information": new URL(
"https://github.com/DavidAnson/markdownlint" + "https://github.com/DavidAnson/markdownlint" +
"/blob/master/test/rules/letters-E-X.js" "/blob/main/test/rules/letters-E-X.js"
), ),
"tags": [ "test" ], "tags": [ "test" ],
"function": function rule(params, onError) { "function": function rule(params, onError) {