You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-7Lines changed: 46 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,22 +239,61 @@ The rules with the following star :star: are included in the configs.
239
239
240
240
<!--RULES_TABLE_START-->
241
241
242
+
## Possible Errors
243
+
244
+
These rules relate to possible syntax or logic errors in Svelte code:
245
+
242
246
| Rule ID | Description ||
243
247
|:--------|:------------|:---|
244
-
|[@ota-meshi/svelte/button-has-type](https://ota-meshi.github.io/eslint-plugin-svelte/rules/button-has-type.html)| disallow usage of button without an explicit type attribute ||
245
-
|[@ota-meshi/svelte/comment-directive](https://ota-meshi.github.io/eslint-plugin-svelte/rules/comment-directive.html)| support comment-directives in HTML template |:star:|
|[@ota-meshi/svelte/max-attributes-per-line](https://ota-meshi.github.io/eslint-plugin-svelte/rules/max-attributes-per-line.html)| enforce the maximum number of attributes per line |:wrench:|
248
-
|[@ota-meshi/svelte/no-at-debug-tags](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-at-debug-tags.html)| disallow the use of `{@debug}`|:star:|
249
-
|[@ota-meshi/svelte/no-at-html-tags](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-at-html-tags.html)| disallow use of `{@html}` to prevent XSS attack |:star:|
|[@ota-meshi/svelte/no-inner-declarations](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-inner-declarations.html)| disallow variable or `function` declarations in nested blocks |:star:|
249
+
250
+
## Security Vulnerability
251
+
252
+
These rules relate to security vulnerabilities in Svelte code:
253
+
254
+
| Rule ID | Description ||
255
+
|:--------|:------------|:---|
256
+
|[@ota-meshi/svelte/no-at-html-tags](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-at-html-tags.html)| disallow use of `{@html}` to prevent XSS attack |:star:|
252
257
|[@ota-meshi/svelte/no-target-blank](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-target-blank.html)| disallow target="_blank" attribute without rel="noopener noreferrer" ||
258
+
259
+
## Best Practices
260
+
261
+
These rules relate to better ways of doing things to help you avoid problems:
262
+
263
+
| Rule ID | Description ||
264
+
|:--------|:------------|:---|
265
+
|[@ota-meshi/svelte/button-has-type](https://ota-meshi.github.io/eslint-plugin-svelte/rules/button-has-type.html)| disallow usage of button without an explicit type attribute ||
266
+
|[@ota-meshi/svelte/no-at-debug-tags](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-at-debug-tags.html)| disallow the use of `{@debug}`|:star:|
|[@ota-meshi/svelte/max-attributes-per-line](https://ota-meshi.github.io/eslint-plugin-svelte/rules/max-attributes-per-line.html)| enforce the maximum number of attributes per line |:wrench:|
254
277
|[@ota-meshi/svelte/prefer-class-directive](https://ota-meshi.github.io/eslint-plugin-svelte/rules/prefer-class-directive.html)| require class directives instead of ternary expressions |:wrench:|
255
278
|[@ota-meshi/svelte/spaced-html-comment](https://ota-meshi.github.io/eslint-plugin-svelte/rules/spaced-html-comment.html)| enforce consistent spacing after the `<!--` and before the `-->` in a HTML comment |:wrench:|
279
+
280
+
## System
281
+
282
+
These rules relate to this plugin works:
283
+
284
+
| Rule ID | Description ||
285
+
|:--------|:------------|:---|
286
+
|[@ota-meshi/svelte/comment-directive](https://ota-meshi.github.io/eslint-plugin-svelte/rules/comment-directive.html)| support comment-directives in HTML template |:star:|
256
287
|[@ota-meshi/svelte/system](https://ota-meshi.github.io/eslint-plugin-svelte/rules/system.html)| system rule for working this plugin |:star:|
257
288
289
+
## Extension Rules
290
+
291
+
These rules extend the rules provided by ESLint itself to work well in Svelte:
292
+
293
+
| Rule ID | Description ||
294
+
|:--------|:------------|:---|
295
+
|[@ota-meshi/svelte/no-inner-declarations](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-inner-declarations.html)| disallow variable or `function` declarations in nested blocks |:star:|
|[@ota-meshi/svelte/max-attributes-per-line](./max-attributes-per-line.md)| enforce the maximum number of attributes per line |:wrench:|
24
47
|[@ota-meshi/svelte/prefer-class-directive](./prefer-class-directive.md)| require class directives instead of ternary expressions |:wrench:|
25
48
|[@ota-meshi/svelte/spaced-html-comment](./spaced-html-comment.md)| enforce consistent spacing after the `<!--` and before the `-->` in a HTML comment |:wrench:|
49
+
50
+
## System
51
+
52
+
These rules relate to this plugin works:
53
+
54
+
| Rule ID | Description ||
55
+
|:--------|:------------|:---|
56
+
|[@ota-meshi/svelte/comment-directive](./comment-directive.md)| support comment-directives in HTML template |:star:|
26
57
|[@ota-meshi/svelte/system](./system.md)| system rule for working this plugin |:star:|
58
+
59
+
## Extension Rules
60
+
61
+
These rules extend the rules provided by ESLint itself to work well in Svelte:
62
+
63
+
| Rule ID | Description ||
64
+
|:--------|:------------|:---|
65
+
|[@ota-meshi/svelte/no-inner-declarations](./no-inner-declarations.md)| disallow variable or `function` declarations in nested blocks |:star:|
0 commit comments