Skip to content

Commit

Permalink
Replace deprecated -header rules with original -heading rules (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadfawcett authored May 6, 2024
1 parent efa892f commit 4d40ea1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .markdownlint-cli2.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions style/accessibility.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions test/usage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4d40ea1

Please sign in to comment.