Skip to content

feat: add tag-bans rule - #1977

Draft
NginxL wants to merge 1 commit into
htmlhint:mainfrom
NginxL:feat/535-tag-bans
Draft

NginxL wants to merge 1 commit into
htmlhint:mainfrom
NginxL:feat/535-tag-bans

Conversation

@NginxL

@NginxL NginxL commented Dec 6, 2026

Copy link
Copy Markdown

Fixes #535.

Summary

  • Add the opt-in tag-bans rule using the array configuration from the issue, for example "tag-bans": ["b", "br"].
  • Match opening and closing tags case-insensitively.
  • Add rule tests, type coverage, and website documentation/index entries.

Checks

  • TypeScript compilation completed before the environment-specific Rollup failure; Rollup bundling then passed with system Node 20.
  • npm test -- --runInBand: 62 suites and 385 tests passed.
  • npm run lint: ESLint and Prettier passed.
  • git diff --check passed.

Gaps

  • The bundled Node 24 runtime could not load Rollup's native binary because of a macOS code-signature/Team-ID mismatch; using the installed system Node 20 for Rollup succeeded.
  • No separate website production build was run.

AI disclosure

Prepared with DSH coding-agent assistance. Please review before marking ready.

Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Ban tags attr-ban

1 participant