Skip to content

Commit 91999e3

Browse files
chore: change the rule category of valid-prop-names-in-kit-pages to SvelteKit (#1016)
Co-authored-by: Yosuke Ota <[email protected]>
1 parent 74373ec commit 91999e3

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.changeset/cool-tomatoes-fry.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'eslint-plugin-svelte': patch
3+
---
4+
5+
chore: change the rule category of `valid-prop-names-in-kit-pages` to `SvelteKit`

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ These rules relate to possible syntax or logic errors in Svelte code:
336336
| [svelte/require-store-callbacks-use-set-param](https://sveltejs.github.io/eslint-plugin-svelte/rules/require-store-callbacks-use-set-param/) | store callbacks must use `set` param | |
337337
| [svelte/require-store-reactive-access](https://sveltejs.github.io/eslint-plugin-svelte/rules/require-store-reactive-access/) | disallow to use of the store itself as an operand. Need to use $ prefix or get function. | :wrench: |
338338
| [svelte/valid-compile](https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-compile/) | disallow warnings when compiling. | :star: |
339-
| [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. | |
340339

341340
## Security Vulnerability
342341

@@ -417,6 +416,7 @@ These rules relate to SvelteKit and its best Practices.
417416
|:--------|:------------|:---|
418417
| [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. | |
419418
| [svelte/no-navigation-without-base](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-navigation-without-base/) | disallow using navigation (links, goto, pushState, replaceState) without the base path | |
419+
| [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. | |
420420

421421
## Experimental
422422

docs/rules.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ These rules relate to possible syntax or logic errors in Svelte code:
3333
| [svelte/require-store-callbacks-use-set-param](./rules/require-store-callbacks-use-set-param.md) | store callbacks must use `set` param | |
3434
| [svelte/require-store-reactive-access](./rules/require-store-reactive-access.md) | disallow to use of the store itself as an operand. Need to use $ prefix or get function. | :wrench: |
3535
| [svelte/valid-compile](./rules/valid-compile.md) | disallow warnings when compiling. | :star: |
36-
| [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. | |
3736

3837
## Security Vulnerability
3938

@@ -114,6 +113,7 @@ These rules relate to SvelteKit and its best Practices.
114113
| :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------- | :-- |
115114
| [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. | |
116115
| [svelte/no-navigation-without-base](./rules/no-navigation-without-base.md) | disallow using navigation (links, goto, pushState, replaceState) 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. | |
117117

118118
## Experimental
119119

packages/eslint-plugin-svelte/src/rules/valid-prop-names-in-kit-pages.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default createRule('valid-prop-names-in-kit-pages', {
2626
meta: {
2727
docs: {
2828
description: 'disallow props other than data or errors in SvelteKit page components.',
29-
category: 'Possible Errors',
29+
category: 'SvelteKit',
3030
// TODO Switch to recommended in the major version.
3131
recommended: false
3232
},

0 commit comments

Comments
 (0)