Skip to content

Linter: Implement html-allowed-script-type rule#1201

Merged
marcoroth merged 3 commits intomarcoroth:mainfrom
markokajzer:marko/allowed-script-type
Feb 20, 2026
Merged

Linter: Implement html-allowed-script-type rule#1201
marcoroth merged 3 commits intomarcoroth:mainfrom
markokajzer:marko/allowed-script-type

Conversation

@markokajzer
Copy link
Contributor

closes #554

questions

  1. Do we want the rule to be configurable (like the original)?
  2. Do we want the disallow_inline_scripts option? It kind of goes a bit further than just checking the types. Maybe it should be its own rule?

@github-actions github-actions bot added documentation Improvements or additions to documentation linter typescript linter-rule labels Feb 17, 2026
@markokajzer markokajzer force-pushed the marko/allowed-script-type branch from a705a9a to 40760aa Compare February 18, 2026 00:04
Copy link
Owner

@marcoroth marcoroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @markokajzer, thanks for taking this on!

  1. Sadly we cannot really add custom configuration for linter rules yet, this is something we should add in the future though.

    That said, I guess we can leave it for now, keep the ALLOW_BLANK const in the rule for later, but maybe add a // TODO comment so know that it needs some work.

    I'd also say since it's not configurable, that we set ALLOW_BLANK to true to begin with, so it's not as aggressive.

    Edit: I opened #1204 to track this

  2. Yeah, I think we can keep this separate. There is also #162 we can implement separately.

@markokajzer
Copy link
Contributor Author

added comment and flipped the switch 👍

@markokajzer markokajzer force-pushed the marko/allowed-script-type branch from 382bc3f to 055cb25 Compare February 18, 2026 22:49
@marcoroth marcoroth changed the title Linter: Add html-allowed-script-type rule Linter: Implement html-allowed-script-type rule Feb 19, 2026
Copy link
Owner

@marcoroth marcoroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much @markokajzer! 🙏🏼

@marcoroth marcoroth merged commit ab93987 into marcoroth:main Feb 20, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation linter linter-rule typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

erb-lint: AllowedScriptType

2 participants