diff --git a/packages/eslint-plugin/lib/rules/no-skip-heading-levels.js b/packages/eslint-plugin/lib/rules/no-skip-heading-levels.js index 000dcd5d..bb5ff9b8 100644 --- a/packages/eslint-plugin/lib/rules/no-skip-heading-levels.js +++ b/packages/eslint-plugin/lib/rules/no-skip-heading-levels.js @@ -40,7 +40,7 @@ module.exports = { return { Tag(node) { - if (!["h1", "h2", "h3", "h5", "h6"].includes(node.name)) { + if (!["h1", "h2", "h3", "h4", "h5", "h6"].includes(node.name)) { return; } headings.push({ diff --git a/packages/eslint-plugin/tests/rules/no-skip-heading-levels.test.js b/packages/eslint-plugin/tests/rules/no-skip-heading-levels.test.js index e75acaf9..c5bb32ec 100644 --- a/packages/eslint-plugin/tests/rules/no-skip-heading-levels.test.js +++ b/packages/eslint-plugin/tests/rules/no-skip-heading-levels.test.js @@ -45,6 +45,18 @@ ruleTester.run("no-skip-heading-levels", rule, {