diff --git a/javascript/packages/linter/docs/rules/html-allowed-script-type.md b/javascript/packages/linter/docs/rules/html-allowed-script-type.md index 13e79991e..3e3f56e9d 100644 --- a/javascript/packages/linter/docs/rules/html-allowed-script-type.md +++ b/javascript/packages/linter/docs/rules/html-allowed-script-type.md @@ -4,7 +4,7 @@ ## Description -Restricts which `type` attribute values are permitted on ` ``` +```erb + +``` + ### 🚫 Bad ```erb @@ -42,6 +54,12 @@ By restricting the allowed `type` values and requiring the `type` attribute to b ``` +```erb + +``` + ```erb ') }) + test("passes when type is application/ld+json", () => { + expectNoOffenses('') + }) + test("passes for script tag with ERB in type attribute", () => { expectNoOffenses('') }) test("fails when type is not allowed", () => { - expectError('Avoid using `text/yavascript` as the `type` attribute for the `') })