Skip to content

Commit 20ad311

Browse files
committed
chore: yarn update
1 parent d68a1cf commit 20ad311

File tree

4 files changed

+57
-58
lines changed

4 files changed

+57
-58
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ These rules relate to possible syntax or logic errors in Svelte code:
288288
| [svelte/no-dupe-else-if-blocks](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-dupe-else-if-blocks/) | disallow duplicate conditions in `{#if}` / `{:else if}` chains | :star: |
289289
| [svelte/no-dupe-style-properties](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-dupe-style-properties/) | disallow duplicate style properties | :star: |
290290
| [svelte/no-dynamic-slot-name](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-dynamic-slot-name/) | disallow dynamic slot name | :star::wrench: |
291-
| [svelte/no-export-load-in-svelte-module-in-kit-pages](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-export-load-in-svelte-module-in-kit-pages/) | disallow exporting load functions in `*.svelte` module in Svelte Kit page components. | :star: |
291+
| [svelte/no-export-load-in-svelte-module-in-kit-pages](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-export-load-in-svelte-module-in-kit-pages/) | disallow exporting load functions in `*.svelte` module in Svelte Kit page components. | |
292292
| [svelte/no-not-function-handler](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-not-function-handler/) | disallow use of not function in event handler | :star: |
293293
| [svelte/no-object-in-text-mustaches](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-object-in-text-mustaches/) | disallow objects in text mustache interpolation | :star: |
294294
| [svelte/no-shorthand-style-property-overrides](https://ota-meshi.github.io/eslint-plugin-svelte/rules/no-shorthand-style-property-overrides/) | disallow shorthand style properties that override related longhand properties | :star: |

docs/rules.md

+54-54
Original file line numberDiff line numberDiff line change
@@ -14,90 +14,90 @@ sidebarDepth: 0
1414

1515
These rules relate to possible syntax or logic errors in Svelte code:
1616

17-
| Rule ID | Description | |
18-
| :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------ | :------------- |
19-
| [svelte/no-dupe-else-if-blocks](./rules/no-dupe-else-if-blocks.md) | disallow duplicate conditions in `{#if}` / `{:else if}` chains | :star: |
20-
| [svelte/no-dupe-style-properties](./rules/no-dupe-style-properties.md) | disallow duplicate style properties | :star: |
21-
| [svelte/no-dynamic-slot-name](./rules/no-dynamic-slot-name.md) | disallow dynamic slot name | :star::wrench: |
22-
| [svelte/no-export-load-in-svelte-module-in-kit-pages](./rules/no-export-load-in-svelte-module-in-kit-pages.md) | disallow exporting load functions in `*.svelte` module in Svelte Kit page components. | :star: |
23-
| [svelte/no-not-function-handler](./rules/no-not-function-handler.md) | disallow use of not function in event handler | :star: |
24-
| [svelte/no-object-in-text-mustaches](./rules/no-object-in-text-mustaches.md) | disallow objects in text mustache interpolation | :star: |
25-
| [svelte/no-shorthand-style-property-overrides](./rules/no-shorthand-style-property-overrides.md) | disallow shorthand style properties that override related longhand properties | :star: |
26-
| [svelte/no-store-async](./rules/no-store-async.md) | disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features | |
27-
| [svelte/no-unknown-style-directive-property](./rules/no-unknown-style-directive-property.md) | disallow unknown `style:property` | :star: |
28-
| [svelte/valid-compile](./rules/valid-compile.md) | disallow warnings when compiling. | :star: |
17+
| Rule ID | Description | |
18+
|:--------|:------------|:---|
19+
| [svelte/no-dupe-else-if-blocks](./rules/no-dupe-else-if-blocks.md) | disallow duplicate conditions in `{#if}` / `{:else if}` chains | :star: |
20+
| [svelte/no-dupe-style-properties](./rules/no-dupe-style-properties.md) | disallow duplicate style properties | :star: |
21+
| [svelte/no-dynamic-slot-name](./rules/no-dynamic-slot-name.md) | disallow dynamic slot name | :star::wrench: |
22+
| [svelte/no-export-load-in-svelte-module-in-kit-pages](./rules/no-export-load-in-svelte-module-in-kit-pages.md) | disallow exporting load functions in `*.svelte` module in Svelte Kit page components. | |
23+
| [svelte/no-not-function-handler](./rules/no-not-function-handler.md) | disallow use of not function in event handler | :star: |
24+
| [svelte/no-object-in-text-mustaches](./rules/no-object-in-text-mustaches.md) | disallow objects in text mustache interpolation | :star: |
25+
| [svelte/no-shorthand-style-property-overrides](./rules/no-shorthand-style-property-overrides.md) | disallow shorthand style properties that override related longhand properties | :star: |
26+
| [svelte/no-store-async](./rules/no-store-async.md) | disallow using async/await inside svelte stores because it causes issues with the auto-unsubscribing features | |
27+
| [svelte/no-unknown-style-directive-property](./rules/no-unknown-style-directive-property.md) | disallow unknown `style:property` | :star: |
28+
| [svelte/valid-compile](./rules/valid-compile.md) | disallow warnings when compiling. | :star: |
2929

3030
## Security Vulnerability
3131

3232
These rules relate to security vulnerabilities in Svelte code:
3333

34-
| Rule ID | Description | |
35-
| :--------------------------------------------------- | :----------------------------------------------------------------------- | :----- |
36-
| [svelte/no-at-html-tags](./rules/no-at-html-tags.md) | disallow use of `{@html}` to prevent XSS attack | :star: |
37-
| [svelte/no-target-blank](./rules/no-target-blank.md) | disallow `target="_blank"` attribute without `rel="noopener noreferrer"` | |
34+
| Rule ID | Description | |
35+
|:--------|:------------|:---|
36+
| [svelte/no-at-html-tags](./rules/no-at-html-tags.md) | disallow use of `{@html}` to prevent XSS attack | :star: |
37+
| [svelte/no-target-blank](./rules/no-target-blank.md) | disallow `target="_blank"` attribute without `rel="noopener noreferrer"` | |
3838

3939
## Best Practices
4040

4141
These rules relate to better ways of doing things to help you avoid problems:
4242

43-
| Rule ID | Description | |
44-
| :--------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------- | :------- |
45-
| [svelte/button-has-type](./rules/button-has-type.md) | disallow usage of button without an explicit type attribute | |
46-
| [svelte/no-at-debug-tags](./rules/no-at-debug-tags.md) | disallow the use of `{@debug}` | :star: |
47-
| [svelte/no-reactive-functions](./rules/no-reactive-functions.md) | it's not necessary to define functions in reactive statements | :bulb: |
48-
| [svelte/no-reactive-literals](./rules/no-reactive-literals.md) | don't assign literal values in reactive statements | :bulb: |
49-
| [svelte/no-unused-svelte-ignore](./rules/no-unused-svelte-ignore.md) | disallow unused svelte-ignore comments | :star: |
50-
| [svelte/no-useless-mustaches](./rules/no-useless-mustaches.md) | disallow unnecessary mustache interpolations | :wrench: |
51-
| [svelte/prefer-destructured-store-props](./rules/prefer-destructured-store-props.md) | destructure values from object stores for better change tracking & fewer redraws | :bulb: |
52-
| [svelte/require-optimized-style-attribute](./rules/require-optimized-style-attribute.md) | require style attributes that can be optimized | |
53-
| [svelte/require-stores-init](./rules/require-stores-init.md) | require initial value in store | |
43+
| Rule ID | Description | |
44+
|:--------|:------------|:---|
45+
| [svelte/button-has-type](./rules/button-has-type.md) | disallow usage of button without an explicit type attribute | |
46+
| [svelte/no-at-debug-tags](./rules/no-at-debug-tags.md) | disallow the use of `{@debug}` | :star: |
47+
| [svelte/no-reactive-functions](./rules/no-reactive-functions.md) | it's not necessary to define functions in reactive statements | :bulb: |
48+
| [svelte/no-reactive-literals](./rules/no-reactive-literals.md) | don't assign literal values in reactive statements | :bulb: |
49+
| [svelte/no-unused-svelte-ignore](./rules/no-unused-svelte-ignore.md) | disallow unused svelte-ignore comments | :star: |
50+
| [svelte/no-useless-mustaches](./rules/no-useless-mustaches.md) | disallow unnecessary mustache interpolations | :wrench: |
51+
| [svelte/prefer-destructured-store-props](./rules/prefer-destructured-store-props.md) | destructure values from object stores for better change tracking & fewer redraws | :bulb: |
52+
| [svelte/require-optimized-style-attribute](./rules/require-optimized-style-attribute.md) | require style attributes that can be optimized | |
53+
| [svelte/require-stores-init](./rules/require-stores-init.md) | require initial value in store | |
5454

5555
## Stylistic Issues
5656

5757
These rules relate to style guidelines, and are therefore quite subjective:
5858

59-
| Rule ID | Description | |
60-
| :------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | :------- |
61-
| [svelte/derived-has-same-inputs-outputs](./rules/derived-has-same-inputs-outputs.md) | derived store should use same variable names between values and callback | |
62-
| [svelte/first-attribute-linebreak](./rules/first-attribute-linebreak.md) | enforce the location of first attribute | :wrench: |
63-
| [svelte/html-closing-bracket-spacing](./rules/html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets | :wrench: |
64-
| [svelte/html-quotes](./rules/html-quotes.md) | enforce quotes style of HTML attributes | :wrench: |
65-
| [svelte/html-self-closing](./rules/html-self-closing.md) | enforce self-closing style | :wrench: |
66-
| [svelte/indent](./rules/indent.md) | enforce consistent indentation | :wrench: |
67-
| [svelte/max-attributes-per-line](./rules/max-attributes-per-line.md) | enforce the maximum number of attributes per line | :wrench: |
68-
| [svelte/mustache-spacing](./rules/mustache-spacing.md) | enforce unified spacing in mustache | :wrench: |
69-
| [svelte/no-extra-reactive-curlies](./rules/no-extra-reactive-curlies.md) | disallow wrapping single reactive statements in curly braces | :bulb: |
70-
| [svelte/no-spaces-around-equal-signs-in-attribute](./rules/no-spaces-around-equal-signs-in-attribute.md) | disallow spaces around equal signs in attribute | :wrench: |
71-
| [svelte/prefer-class-directive](./rules/prefer-class-directive.md) | require class directives instead of ternary expressions | :wrench: |
72-
| [svelte/prefer-style-directive](./rules/prefer-style-directive.md) | require style directives instead of style attribute | :wrench: |
73-
| [svelte/shorthand-attribute](./rules/shorthand-attribute.md) | enforce use of shorthand syntax in attribute | :wrench: |
74-
| [svelte/shorthand-directive](./rules/shorthand-directive.md) | enforce use of shorthand syntax in directives | :wrench: |
75-
| [svelte/sort-attributes](./rules/sort-attributes.md) | enforce order of attributes | :wrench: |
76-
| [svelte/spaced-html-comment](./rules/spaced-html-comment.md) | enforce consistent spacing after the `<!--` and before the `-->` in a HTML comment | :wrench: |
59+
| Rule ID | Description | |
60+
|:--------|:------------|:---|
61+
| [svelte/derived-has-same-inputs-outputs](./rules/derived-has-same-inputs-outputs.md) | derived store should use same variable names between values and callback | |
62+
| [svelte/first-attribute-linebreak](./rules/first-attribute-linebreak.md) | enforce the location of first attribute | :wrench: |
63+
| [svelte/html-closing-bracket-spacing](./rules/html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets | :wrench: |
64+
| [svelte/html-quotes](./rules/html-quotes.md) | enforce quotes style of HTML attributes | :wrench: |
65+
| [svelte/html-self-closing](./rules/html-self-closing.md) | enforce self-closing style | :wrench: |
66+
| [svelte/indent](./rules/indent.md) | enforce consistent indentation | :wrench: |
67+
| [svelte/max-attributes-per-line](./rules/max-attributes-per-line.md) | enforce the maximum number of attributes per line | :wrench: |
68+
| [svelte/mustache-spacing](./rules/mustache-spacing.md) | enforce unified spacing in mustache | :wrench: |
69+
| [svelte/no-extra-reactive-curlies](./rules/no-extra-reactive-curlies.md) | disallow wrapping single reactive statements in curly braces | :bulb: |
70+
| [svelte/no-spaces-around-equal-signs-in-attribute](./rules/no-spaces-around-equal-signs-in-attribute.md) | disallow spaces around equal signs in attribute | :wrench: |
71+
| [svelte/prefer-class-directive](./rules/prefer-class-directive.md) | require class directives instead of ternary expressions | :wrench: |
72+
| [svelte/prefer-style-directive](./rules/prefer-style-directive.md) | require style directives instead of style attribute | :wrench: |
73+
| [svelte/shorthand-attribute](./rules/shorthand-attribute.md) | enforce use of shorthand syntax in attribute | :wrench: |
74+
| [svelte/shorthand-directive](./rules/shorthand-directive.md) | enforce use of shorthand syntax in directives | :wrench: |
75+
| [svelte/sort-attributes](./rules/sort-attributes.md) | enforce order of attributes | :wrench: |
76+
| [svelte/spaced-html-comment](./rules/spaced-html-comment.md) | enforce consistent spacing after the `<!--` and before the `-->` in a HTML comment | :wrench: |
7777

7878
## Extension Rules
7979

8080
These rules extend the rules provided by ESLint itself, or other plugins to work well in Svelte:
8181

82-
| Rule ID | Description | |
83-
| :--------------------------------------------------------------- | :------------------------------------------------------------ | :------- |
84-
| [svelte/no-inner-declarations](./rules/no-inner-declarations.md) | disallow variable or `function` declarations in nested blocks | :star: |
85-
| [svelte/no-trailing-spaces](./rules/no-trailing-spaces.md) | disallow trailing whitespace at the end of lines | :wrench: |
82+
| Rule ID | Description | |
83+
|:--------|:------------|:---|
84+
| [svelte/no-inner-declarations](./rules/no-inner-declarations.md) | disallow variable or `function` declarations in nested blocks | :star: |
85+
| [svelte/no-trailing-spaces](./rules/no-trailing-spaces.md) | disallow trailing whitespace at the end of lines | :wrench: |
8686

8787
## System
8888

8989
These rules relate to this plugin works:
9090

91-
| Rule ID | Description | |
92-
| :------------------------------------------------------- | :------------------------------------------ | :----- |
91+
| Rule ID | Description | |
92+
|:--------|:------------|:---|
9393
| [svelte/comment-directive](./rules/comment-directive.md) | support comment-directives in HTML template | :star: |
94-
| [svelte/system](./rules/system.md) | system rule for working this plugin | :star: |
94+
| [svelte/system](./rules/system.md) | system rule for working this plugin | :star: |
9595

9696
## Deprecated
9797

9898
- :warning: We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
9999
- :innocent: We don't fix bugs which are in deprecated rules since we don't have enough resources.
100100

101-
| Rule ID | Replaced by |
102-
| :----------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------- |
101+
| Rule ID | Replaced by |
102+
|:--------|:------------|
103103
| [svelte/@typescript-eslint/no-unnecessary-condition](./rules/@typescript-eslint/no-unnecessary-condition.md) | This rule is no longer needed when using svelte-eslint-parser>=v0.19.0. |

docs/rules/no-export-load-in-svelte-module-in-kit-pages.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/no-export-load-in-svelte-module-in-kit-pages"
5-
description: "disallow exporting load functions in `*.svelte` module in Svelte Kit page components"
5+
description: "disallow exporting load functions in `*.svelte` module in Svelte Kit page components."
66
---
77

88
# svelte/no-export-load-in-svelte-module-in-kit-pages
99

1010
> disallow exporting load functions in `*.svelte` module in Svelte Kit page components.
1111
12-
- :gear: This rule is included in `"plugin:svelte/recommended"`.
12+
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
1313

1414
## :book: Rule Details
1515

src/configs/recommended.ts

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export = {
1212
"svelte/no-dupe-else-if-blocks": "error",
1313
"svelte/no-dupe-style-properties": "error",
1414
"svelte/no-dynamic-slot-name": "error",
15-
"svelte/no-export-load-in-svelte-module-in-kit-pages": "error",
1615
"svelte/no-inner-declarations": "error",
1716
"svelte/no-not-function-handler": "error",
1817
"svelte/no-object-in-text-mustaches": "error",

0 commit comments

Comments
 (0)