-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AllowedScriptType should allow "module" for type script tag #384
Comments
Hi there! 👋🏻 ---
linters:
AllowedScriptType:
enabled: true
allowed_types:
- 'application/json'
- 'text/javascript'
- 'text/html'
- 'application/ld+json' # ⬅️ here
- 'module' # ⬅️ and here
allow_blank: false
disallow_inline_scripts: false (More details in the link I shared above.) (This PR in BetterHtml seems to be related by the way: Add module as a type of <script>.) |
Does it make sense to add these to the default acceptable values? |
@jcoyne Reading the documentation, I don't think
If you want to allow Meanwhile, you can allow these in your ERB Lint configuration file. |
I don't understand why erb_lint is surfacing this:
This is valid HTML: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#applying_the_module_to_your_html
Similarly "application/ld+json" should be an acceptable value. https://docs.parse.ly/metadata-jsonld/
The text was updated successfully, but these errors were encountered: