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: docs/rules.md
+29-29Lines changed: 29 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ sidebarDepth: 0
5
5
# Available Rules
6
6
7
7
The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) automatically fixes problems reported by rules which have a wrench :wrench: below.
8
-
The rules with the following star :star: are included in the `plugin:@ota-meshi/svelte/recommended` config.
8
+
The rules with the following star :star: are included in the `plugin:svelte/recommended` config.
9
9
10
10
<!-- This file is automatically generated in tools/update-docs-rules-index.js, do not change! -->
11
11
@@ -15,66 +15,66 @@ These rules relate to possible syntax or logic errors in Svelte code:
|[@ota-meshi/svelte/require-optimized-style-attribute](./rules/require-optimized-style-attribute.md)| require style attributes that can be optimized ||
42
+
|[svelte/button-has-type](./rules/button-has-type.md)| disallow usage of button without an explicit type attribute ||
43
+
|[svelte/no-at-debug-tags](./rules/no-at-debug-tags.md)| disallow the use of `{@debug}`|:star:|
|[@ota-meshi/svelte/max-attributes-per-line](./rules/max-attributes-per-line.md)| enforce the maximum number of attributes per line |:wrench:|
58
-
|[@ota-meshi/svelte/mustache-spacing](./rules/mustache-spacing.md)| enforce unified spacing in mustache |:wrench:|
59
-
|[@ota-meshi/svelte/prefer-class-directive](./rules/prefer-class-directive.md)| require class directives instead of ternary expressions |:wrench:|
60
-
|[@ota-meshi/svelte/prefer-style-directive](./rules/prefer-style-directive.md)| require style directives instead of style attribute |:wrench:|
61
-
|[@ota-meshi/svelte/shorthand-attribute](./rules/shorthand-attribute.md)| enforce use of shorthand syntax in attribute |:wrench:|
62
-
|[@ota-meshi/svelte/shorthand-directive](./rules/shorthand-directive.md)| enforce use of shorthand syntax in directives |:wrench:|
63
-
|[@ota-meshi/svelte/spaced-html-comment](./rules/spaced-html-comment.md)| enforce consistent spacing after the `<!--` and before the `-->` in a HTML comment |:wrench:|
54
+
|[svelte/first-attribute-linebreak](./rules/first-attribute-linebreak.md)| enforce the location of first attribute |:wrench:|
55
+
|[svelte/html-quotes](./rules/html-quotes.md)| enforce quotes style of HTML attributes |:wrench:|
|[svelte/max-attributes-per-line](./rules/max-attributes-per-line.md)| enforce the maximum number of attributes per line |:wrench:|
58
+
|[svelte/mustache-spacing](./rules/mustache-spacing.md)| enforce unified spacing in mustache |:wrench:|
59
+
|[svelte/prefer-class-directive](./rules/prefer-class-directive.md)| require class directives instead of ternary expressions |:wrench:|
60
+
|[svelte/prefer-style-directive](./rules/prefer-style-directive.md)| require style directives instead of style attribute |:wrench:|
61
+
|[svelte/shorthand-attribute](./rules/shorthand-attribute.md)| enforce use of shorthand syntax in attribute |:wrench:|
62
+
|[svelte/shorthand-directive](./rules/shorthand-directive.md)| enforce use of shorthand syntax in directives |:wrench:|
63
+
|[svelte/spaced-html-comment](./rules/spaced-html-comment.md)| enforce consistent spacing after the `<!--` and before the `-->` in a HTML comment |:wrench:|
64
64
65
65
## Extension Rules
66
66
67
67
These rules extend the rules provided by ESLint itself to work well in Svelte:
68
68
69
69
| Rule ID | Description ||
70
70
|:--------|:------------|:---|
71
-
|[@ota-meshi/svelte/no-inner-declarations](./rules/no-inner-declarations.md)| disallow variable or `function` declarations in nested blocks |:star:|
71
+
|[svelte/no-inner-declarations](./rules/no-inner-declarations.md)| disallow variable or `function` declarations in nested blocks |:star:|
72
72
73
73
## System
74
74
75
75
These rules relate to this plugin works:
76
76
77
77
| Rule ID | Description ||
78
78
|:--------|:------------|:---|
79
-
|[@ota-meshi/svelte/comment-directive](./rules/comment-directive.md)| support comment-directives in HTML template |:star:|
80
-
|[@ota-meshi/svelte/system](./rules/system.md)| system rule for working this plugin |:star:|
79
+
|[svelte/comment-directive](./rules/comment-directive.md)| support comment-directives in HTML template |:star:|
80
+
|[svelte/system](./rules/system.md)| system rule for working this plugin |:star:|
0 commit comments