File tree 2 files changed +38
-0
lines changed 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ title: List of rules
12
12
- [ ` html-lang-require ` ] ( /docs/user-guide/rules/html-lang-require ) : The HTML lang attribute is required.
13
13
- [ ` head-script-disabled ` ] ( /docs/user-guide/rules/head-script-disabled ) : The ` <script> ` tag cannot be used in a tag.
14
14
- [ ` style-disabled ` ] ( /docs/user-guide/rules/style-disabled ) : ` <style> ` tags cannot be used.
15
+ - [ ` script-disabled ` ] ( /docs/user-guide/rules/script-disabled ) : ` <script> ` tags cannot be used.
15
16
- [ ` title-require ` ] ( /docs/user-guide/rules/title-require ) : ` <title> ` must be present in ` <head> ` tag.
16
17
17
18
### Attributes
Original file line number Diff line number Diff line change
1
+ ---
2
+ id : script-disabled
3
+ title : script-disabled
4
+ ---
5
+
6
+ The script tag can not be used anywhere in the document.
7
+
8
+ Level: ` warning `
9
+
10
+ ## Config value
11
+
12
+ 1 . true: enable rule
13
+ 2 . false: disable rule
14
+
15
+ The following pattern are ** not** considered violations:
16
+
17
+ <!-- prettier-ignore -->
18
+ ``` html
19
+ <body >
20
+ </body >
21
+ ```
22
+
23
+ The following patterns are considered violation:
24
+
25
+ <!-- prettier-ignore -->
26
+ ``` html
27
+ <head >
28
+ <script src =" test.js" ></script >
29
+ </head >
30
+ ```
31
+
32
+ <!-- prettier-ignore -->
33
+ ``` html
34
+ <body >
35
+ <script src =" test.js" ></script >
36
+ </body >
37
+ ```
You can’t perform that action at this time.
0 commit comments