7
7
</div >
8
8
9
9
- [ Usage] ( #usage )
10
- - [ Disable ESLint] ( #disable-eslint )
10
+ - [ Disabling ESLint] ( #disabling-eslint )
11
+ - [ Linting HTML] ( #linting-html )
11
12
- [ Multiple scripts tags in a HTML file] ( #multiple-scripts-tags-in-a-html-file )
12
13
- [ History] ( #history )
13
14
- [ XML support] ( #xml-support )
@@ -43,7 +44,7 @@ Example:
43
44
}
44
45
```
45
46
46
- ## Disable ESLint
47
+ ## Disabling ESLint
47
48
48
49
To temporarily disable ESLint, use the ` <!-- eslint-disable --> ` HTML comment. Re-enable it with
49
50
` <!-- eslint enable --> ` . Example:
@@ -69,6 +70,14 @@ comment. Example:
69
70
Disabled script tags are completely ignored: their content will not be parsed as JavaScript. You can
70
71
use this to disable script tags containing template syntax.
71
72
73
+ ## Linting HTML
74
+
75
+ This plugin focuses on applying ESLint rules on inline scripts contained in HTML. It does not
76
+ provide any rule related to HTML. For that, you can use other plugins like
77
+ [ ` @eslint-html ` ] ( https://yeonjuan.github.io/html-eslint/ ) or
78
+ [ @angular-eslint ] ( https://github.com/angular-eslint/angular-eslint ) . ` eslint-plugin-html ` is
79
+ compatible with those plugins and can be used along them.
80
+
72
81
## Multiple scripts tags in a HTML file
73
82
74
83
When linting a HTML with multiple script tags, this plugin tries to emulate the browser behavior by
@@ -238,7 +247,7 @@ documentation](http://eslint.org/docs/user-guide/command-line-interface#ext).
238
247
your script tags, the resulting script may not be valid JavaScript, so ` ESLint ` will fail to parse
239
248
it. Here are some workarounds:
240
249
241
- - You can use [ HTML comments to disable ESLint] ( #disable -eslint ) for specific script tags.
250
+ - You can use [ HTML comments to disable ESLint] ( #disabling -eslint ) for specific script tags.
242
251
243
252
- For PHP, you can use
244
253
[ ` eslint-plugin-php-markup ` ] ( https://github.com/tengattack/eslint-plugin-php-markup ) to lint php
0 commit comments