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: .github/ISSUE_TEMPLATE/bug_report.yml
+6-6
Original file line number
Diff line number
Diff line change
@@ -68,13 +68,13 @@ body:
68
68
attributes:
69
69
label: Link to **GitHub Repo** with Minimal Reproducible Example
70
70
description: |
71
-
Create a minimal reproduction of the problem. **A minimal reproduction is required** so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be closed.
72
-
[Why Reproductions are Required](https://antfu.me/posts/why-reproductions-are-required)
71
+
Create a minimal reproduction of the problem. **A minimal reproduction is required** so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be closed.\
72
+
[Why Reproductions are Required](https://antfu.me/posts/why-reproductions-are-required)\
73
73
74
-
Be sure to share the repo on GitHub. GitHub's repo is ready to debug using Codespace.
75
-
Please DON'T USE non-GitHub repos such as GitLab as repro.
76
-
It takes me a long time to prepare my local PC for debugging.
77
-
Please DON'T USE stackblitz as a repro.
74
+
Be sure to share the repo on GitHub. GitHub's repo is ready to debug using Codespace.\
75
+
Please DON'T USE non-GitHub repos such as GitLab as repro.\
76
+
It takes me a long time to prepare my local PC for debugging.\
Copy file name to clipboardExpand all lines: README.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,8 @@
30
30
31
31
## Introduction
32
32
33
-
`eslint-plugin-svelte` is the official [ESLint](https://eslint.org/) plugin for [Svelte](https://svelte.dev/).
34
-
It leverages the AST generated by [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) to provide custom linting for Svelte.
33
+
`eslint-plugin-svelte` is the official [ESLint](https://eslint.org/) plugin for [Svelte](https://svelte.dev/).\
34
+
It leverages the AST generated by [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) to provide custom linting for Svelte.\
35
35
Note that `eslint-plugin-svelte` and `svelte-eslint-parser` cannot be used alongside [eslint-plugin-svelte3](https://github.com/sveltejs/eslint-plugin-svelte3).
:wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.
251
-
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
250
+
:wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.\
251
+
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).\
252
252
:star: Indicates that the rule is included in the `plugin:svelte/recommended` config.
253
253
254
254
<!--RULES_TABLE_START-->
@@ -400,7 +400,7 @@ These rules relate to this plugin works:
400
400
401
401
## Contributing
402
402
403
-
Contributions are welcome! Please open an issue or submit a PR. For more details, see [CONTRIBUTING.md](./CONTRIBUTING.md).
403
+
Contributions are welcome! Please open an issue or submit a PR. For more details, see [CONTRIBUTING.md](./CONTRIBUTING.md).\
404
404
Refer to [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) for AST details.
Copy file name to clipboardExpand all lines: docs/README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@ title: 'eslint-plugin-svelte'
4
4
5
5
## Introduction
6
6
7
-
`eslint-plugin-svelte` is the official [ESLint](https://eslint.org/) plugin for [Svelte](https://svelte.dev/).
8
-
It leverages the AST generated by [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) to provide custom linting for Svelte.
7
+
`eslint-plugin-svelte` is the official [ESLint](https://eslint.org/) plugin for [Svelte](https://svelte.dev/).\
8
+
It leverages the AST generated by [svelte-eslint-parser](https://github.com/sveltejs/svelte-eslint-parser) to provide custom linting for Svelte.\
9
9
Note that `eslint-plugin-svelte` and `svelte-eslint-parser` cannot be used alongside [eslint-plugin-svelte3](https://github.com/sveltejs/eslint-plugin-svelte3).
Copy file name to clipboardExpand all lines: docs/rules.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@ sidebarDepth: 0
4
4
5
5
# Available Rules
6
6
7
-
:wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.
8
-
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
7
+
:wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.\
8
+
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).\
9
9
:star: Indicates that the rule is included in the `plugin:svelte/recommended` config.
10
10
11
11
<!-- This file is automatically generated in tools/update-docs-rules-index.js, do not change! -->
Copy file name to clipboardExpand all lines: docs/rules/no-inner-declarations.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ since: 'v0.0.8'
16
16
17
17
This rule requires that function declarations and, optionally, variable declarations be in the root of a program or the body of a function.
18
18
19
-
This rule extends the base ESLint's [no-inner-declarations] rule. The AST generated by [svelte-eslint-parser] will false positives in [no-inner-declarations] rule because the root node of the script is not the `Program`.
19
+
This rule extends the base ESLint's [no-inner-declarations] rule. The AST generated by [svelte-eslint-parser] will false positives in [no-inner-declarations] rule because the root node of the script is not the `Program`.\
Copy file name to clipboardExpand all lines: docs/rules/no-not-function-handler.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ since: 'v0.5.0'
14
14
15
15
## :book: Rule Details
16
16
17
-
This rule reports where you used not function value in event handlers.
17
+
This rule reports where you used not function value in event handlers.\
18
18
If you use a non-function value for the event handler, it event handler will not be called. It's almost always a mistake. You may have written a lot of unnecessary curly braces.
Copy file name to clipboardExpand all lines: docs/rules/no-object-in-text-mustaches.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ since: 'v0.5.0'
14
14
15
15
## :book: Rule Details
16
16
17
-
This rule disallows the use of objects in text mustache interpolation.
17
+
This rule disallows the use of objects in text mustache interpolation.\
18
18
When you use an object for text interpolation, it is drawn as `[object Object]`. It's almost always a mistake. You may have written a lot of unnecessary curly braces.
Copy file name to clipboardExpand all lines: docs/rules/require-optimized-style-attribute.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ since: 'v0.32.0'
14
14
15
15
This rule reports `style` attributes written in a format that cannot be optimized.
16
16
17
-
Svelte parses the content written in the style attribute and tries to optimize it. (See [https://github.com/sveltejs/svelte/pull/810](https://github.com/sveltejs/svelte/pull/810))
17
+
Svelte parses the content written in the style attribute and tries to optimize it. (See [https://github.com/sveltejs/svelte/pull/810](https://github.com/sveltejs/svelte/pull/810))\
18
18
If Svelte can be successfully optimized, Svelte can minimize the number of re-renders.
Copy file name to clipboardExpand all lines: docs/rules/require-store-reactive-access.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ since: 'v2.12.0'
15
15
16
16
## :book: Rule Details
17
17
18
-
This rule disallow to use of the store itself as an operand.
18
+
This rule disallow to use of the store itself as an operand.\
19
19
You should access the store value using the `$` prefix or the `get` function.
20
20
21
21
<!--eslint-skip-->
@@ -58,7 +58,7 @@ You should access the store value using the `$` prefix or the `get` function.
58
58
<MyComponent {...storeValue} />
59
59
```
60
60
61
-
This rule checks the usage of store variables only if the store can be determined within a single file.
61
+
This rule checks the usage of store variables only if the store can be determined within a single file.
62
62
However, when using `@typescript-eslint/parser` and full type information, this rule uses the type information to determine if the expression is a store.
Copy file name to clipboardExpand all lines: docs/rules/sort-attributes.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ since: 'v2.4.0'
14
14
15
15
## :book: Rule Details
16
16
17
-
This rule aims to enforce ordering of attributes.
17
+
This rule aims to enforce ordering of attributes.\
18
18
The default order is:
19
19
20
20
-`this` property.
@@ -175,8 +175,8 @@ If there is a spread attribute between the attributes, it will not be reported a
175
175
-`"alphabetical"` ... Sorts the attributes of the same group in alphabetical order.
176
176
-`"ignore"` ... Attributes in the same group are not sorted.
177
177
178
-
Note that the behavior may change depending on how you specify the `order` setting.
179
-
For example, `bind:value` and `on:input={() => console.log(value)}` behave differently depending on the order. See <https://svelte.dev/docs#template-syntax-element-directives-bind-property> for details.
178
+
Note that the behavior may change depending on how you specify the `order` setting.\
179
+
For example, `bind:value` and `on:input={() => console.log(value)}` behave differently depending on the order. See <https://svelte.dev/docs#template-syntax-element-directives-bind-property> for details.\
180
180
By default it is designed to be sorted safely.
181
181
182
182
You can use the following formats for names or patterns:
Copy file name to clipboardExpand all lines: packages/eslint-plugin-svelte/tools/update-docs-rules-index.ts
+2-2
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@ sidebarDepth: 0
14
14
15
15
# Available Rules
16
16
17
-
:wrench: Indicates that the rule is fixable, and using \`--fix\` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.
18
-
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
17
+
:wrench: Indicates that the rule is fixable, and using \`--fix\` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems.\\
18
+
:bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).\\
19
19
:star: Indicates that the rule is included in the \`plugin:svelte/recommended\` config.
20
20
21
21
<!-- This file is automatically generated in tools/update-docs-rules-index.js, do not change! -->
0 commit comments