Skip to content

Commit 4d40ea1

Browse files
authored
Replace deprecated -header rules with original -heading rules (#110)
1 parent efa892f commit 4d40ea1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.markdownlint-cli2.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const options = require('./index.js').init({
33
"heading-increment": true,
44
"no-alt-text": true,
55
"single-h1": true,
6-
"no-emphasis-as-header": true,
6+
"no-emphasis-as-heading": true,
77
"first-line-heading": true
88
})
99
module.exports = {

style/accessibility.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"no-alt-text": true,
33
"no-default-alt-text": true,
4-
"no-duplicate-header": true,
5-
"no-emphasis-as-header": true,
4+
"no-duplicate-heading": true,
5+
"no-emphasis-as-heading": true,
66
"no-generic-link-text": true,
77
"heading-increment": true,
88
"no-space-in-links": false,

test/usage.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ describe("usage", () => {
1515
test("default options returned with no arguments provided", () => {
1616
const options = githubMarkdownLint.init();
1717
expect(options).toEqual({
18-
"no-duplicate-header": true,
18+
"no-duplicate-heading": true,
1919
"ol-prefix": "ordered",
2020
"no-space-in-links": false,
2121
"single-h1": true,
22-
"no-emphasis-as-header": true,
22+
"no-emphasis-as-heading": true,
2323
"no-empty-alt-text": false,
2424
"heading-increment": true,
2525
"no-generic-link-text": true,

0 commit comments

Comments
 (0)