Skip to content

Commit ed82143

Browse files
committed
update
1 parent c7218d1 commit ed82143

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ These rules relate to SvelteKit and its best Practices.
413413
|:--------|:------------|:---|
414414
| [svelte/no-export-load-in-svelte-module-in-kit-pages](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-export-load-in-svelte-module-in-kit-pages/) | disallow exporting load functions in `*.svelte` module in SvelteKit page components. | |
415415
| [svelte/no-goto-without-base](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-goto-without-base/) | disallow using goto() without the base path | |
416-
| [svelte/valid-prop-names-in-kit-pages](https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-prop-names-in-kit-pages/) | disallow props other than data or errors in SvelteKit page components. | |
416+
| [svelte/valid-prop-names-in-kit-pages](https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-prop-names-in-kit-pages/) | disallow props other than data or errors in SvelteKit page components. | :white_check_mark: :star: :classical_building: |
417417

418418
## Experimental
419419

docs/rules.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ These rules extend the rules provided by ESLint itself, or other plugins to work
109109

110110
These rules relate to SvelteKit and its best Practices.
111111

112-
| Rule ID | Description | |
113-
| :------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------- | :-- |
114-
| [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 SvelteKit page components. | |
115-
| [svelte/no-goto-without-base](./rules/no-goto-without-base.md) | disallow using goto() without the base path | |
116-
| [svelte/valid-prop-names-in-kit-pages](./rules/valid-prop-names-in-kit-pages.md) | disallow props other than data or errors in SvelteKit page components. | |
112+
| Rule ID | Description | |
113+
| :------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------- | :--------------------------------------------- |
114+
| [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 SvelteKit page components. | |
115+
| [svelte/no-goto-without-base](./rules/no-goto-without-base.md) | disallow using goto() without the base path | |
116+
| [svelte/valid-prop-names-in-kit-pages](./rules/valid-prop-names-in-kit-pages.md) | disallow props other than data or errors in SvelteKit page components. | :white_check_mark: :star: :classical_building: |
117117

118118
## Experimental
119119

docs/rules/valid-prop-names-in-kit-pages.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ since: 'v2.12.0'
1010

1111
> disallow props other than data or errors in SvelteKit page components.
1212
13+
- :gear: This rule is included in all of `"plugin:svelte/recommended"`, `"plugin:svelte/recommended_svelte5_without_legacy"` and `"plugin:svelte/recommended_svelte3_4"` configuration.
14+
1315
## :book: Rule Details
1416

1517
This rule reports unexpected exported variables at `<script>`.<br>

packages/eslint-plugin-svelte/src/configs/flat/recommended.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ const config: Linter.Config[] = [
4444
'svelte/require-store-reactive-access': 'error',
4545
'svelte/system': 'error',
4646
'svelte/valid-compile': 'error',
47-
'svelte/valid-each-key': 'error'
47+
'svelte/valid-each-key': 'error',
48+
'svelte/valid-prop-names-in-kit-pages': 'error'
4849
}
4950
}
5051
];

packages/eslint-plugin-svelte/src/configs/flat/recommended_svelte3_4.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ const config: Linter.Config[] = [
4545
'svelte/require-store-reactive-access': 'error',
4646
'svelte/system': 'error',
4747
'svelte/valid-compile': 'error',
48-
'svelte/valid-each-key': 'error'
48+
'svelte/valid-each-key': 'error',
49+
'svelte/valid-prop-names-in-kit-pages': 'error'
4950
}
5051
}
5152
];

packages/eslint-plugin-svelte/src/configs/flat/recommended_svelte5_without_legacy.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const config: Linter.Config[] = [
3636
'svelte/require-store-reactive-access': 'error',
3737
'svelte/system': 'error',
3838
'svelte/valid-compile': 'error',
39-
'svelte/valid-each-key': 'error'
39+
'svelte/valid-each-key': 'error',
40+
'svelte/valid-prop-names-in-kit-pages': 'error'
4041
}
4142
}
4243
];

0 commit comments

Comments
 (0)