Skip to content

Commit

Permalink
docs(script-disabled): add missing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Dec 25, 2021
1 parent 8b9ddd3 commit 989d0eb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/user-guide/list-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ title: List of rules
- [`html-lang-require`](/docs/user-guide/rules/html-lang-require): The HTML lang attribute is required.
- [`head-script-disabled`](/docs/user-guide/rules/head-script-disabled): The `<script>` tag cannot be used in a tag.
- [`style-disabled`](/docs/user-guide/rules/style-disabled): `<style>` tags cannot be used.
- [`script-disabled`](/docs/user-guide/rules/script-disabled): `<script>` tags cannot be used.
- [`title-require`](/docs/user-guide/rules/title-require): `<title>` must be present in `<head>` tag.

### Attributes
Expand Down
37 changes: 37 additions & 0 deletions docs/user-guide/rules/script-disabled.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
id: script-disabled
title: script-disabled
---

The script tag can not be used anywhere in the document.

Level: `warning`

## Config value

1. true: enable rule
2. false: disable rule

The following pattern are **not** considered violations:

<!-- prettier-ignore -->
```html
<body>
</body>
```

The following patterns are considered violation:

<!-- prettier-ignore -->
```html
<head>
<script src="test.js"></script>
</head>
```

<!-- prettier-ignore -->
```html
<body>
<script src="test.js"></script>
</body>
```

0 comments on commit 989d0eb

Please sign in to comment.