From 4d40ea1fac8c14bf72108c4b9d00762ad716ceef Mon Sep 17 00:00:00 2001 From: Chad Fawcett Date: Mon, 6 May 2024 08:08:45 -0700 Subject: [PATCH] Replace deprecated -header rules with original -heading rules (#110) --- .markdownlint-cli2.cjs | 2 +- style/accessibility.json | 4 ++-- test/usage.test.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.markdownlint-cli2.cjs b/.markdownlint-cli2.cjs index 5981f5a..ed72624 100644 --- a/.markdownlint-cli2.cjs +++ b/.markdownlint-cli2.cjs @@ -3,7 +3,7 @@ const options = require('./index.js').init({ "heading-increment": true, "no-alt-text": true, "single-h1": true, - "no-emphasis-as-header": true, + "no-emphasis-as-heading": true, "first-line-heading": true }) module.exports = { diff --git a/style/accessibility.json b/style/accessibility.json index 0cfe216..a8736c4 100644 --- a/style/accessibility.json +++ b/style/accessibility.json @@ -1,8 +1,8 @@ { "no-alt-text": true, "no-default-alt-text": true, - "no-duplicate-header": true, - "no-emphasis-as-header": true, + "no-duplicate-heading": true, + "no-emphasis-as-heading": true, "no-generic-link-text": true, "heading-increment": true, "no-space-in-links": false, diff --git a/test/usage.test.js b/test/usage.test.js index a87d10b..234effe 100644 --- a/test/usage.test.js +++ b/test/usage.test.js @@ -15,11 +15,11 @@ describe("usage", () => { test("default options returned with no arguments provided", () => { const options = githubMarkdownLint.init(); expect(options).toEqual({ - "no-duplicate-header": true, + "no-duplicate-heading": true, "ol-prefix": "ordered", "no-space-in-links": false, "single-h1": true, - "no-emphasis-as-header": true, + "no-emphasis-as-heading": true, "no-empty-alt-text": false, "heading-increment": true, "no-generic-link-text": true,