Skip to content

Commit 71fe5cf

Browse files
authored
fix spelling of SvelteKit (#491)
1 parent 89c4b89 commit 71fe5cf

File tree

11 files changed

+24
-24
lines changed

11 files changed

+24
-24
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ These rules relate to possible syntax or logic errors in Svelte code:
310310
| [svelte/no-dupe-style-properties](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-style-properties/) | disallow duplicate style properties | :star: |
311311
| [svelte/no-dupe-use-directives](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-use-directives/) | disallow duplicate `use:` directives | |
312312
| [svelte/no-dynamic-slot-name](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dynamic-slot-name/) | disallow dynamic slot name | :star::wrench: |
313-
| [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 Svelte Kit page components. | |
313+
| [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. | |
314314
| [svelte/no-not-function-handler](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-not-function-handler/) | disallow use of not function in event handler | :star: |
315315
| [svelte/no-object-in-text-mustaches](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-object-in-text-mustaches/) | disallow objects in text mustache interpolation | :star: |
316316
| [svelte/no-reactive-reassign](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-reactive-reassign/) | disallow reassigning reactive values | |
@@ -320,7 +320,7 @@ These rules relate to possible syntax or logic errors in Svelte code:
320320
| [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 | |
321321
| [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: |
322322
| [svelte/valid-compile](https://sveltejs.github.io/eslint-plugin-svelte/rules/valid-compile/) | disallow warnings when compiling. | :star: |
323-
| [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 Svelte Kit page components. | |
323+
| [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. | |
324324

325325
## Security Vulnerability
326326

docs-svelte-kit/tools/generate-routes.mts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const dirname = path.dirname(
88
),
99
)
1010

11-
/** Generate svelte kit routes files */
11+
/** Generate SvelteKit routes files */
1212
export default function generateRoutes(): void {
1313
const srcRoot = path.join(dirname, "../../docs")
1414
const distRoot = path.join(dirname, "../src/routes")

docs/rules.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ These rules relate to possible syntax or logic errors in Svelte code:
2323
| [svelte/no-dupe-style-properties](./rules/no-dupe-style-properties.md) | disallow duplicate style properties | :star: |
2424
| [svelte/no-dupe-use-directives](./rules/no-dupe-use-directives.md) | disallow duplicate `use:` directives | |
2525
| [svelte/no-dynamic-slot-name](./rules/no-dynamic-slot-name.md) | disallow dynamic slot name | :star::wrench: |
26-
| [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. | |
26+
| [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. | |
2727
| [svelte/no-not-function-handler](./rules/no-not-function-handler.md) | disallow use of not function in event handler | :star: |
2828
| [svelte/no-object-in-text-mustaches](./rules/no-object-in-text-mustaches.md) | disallow objects in text mustache interpolation | :star: |
2929
| [svelte/no-reactive-reassign](./rules/no-reactive-reassign.md) | disallow reassigning reactive values | |
@@ -33,7 +33,7 @@ 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 Svelte Kit page components. | |
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. | |
3737

3838
## Security Vulnerability
3939

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
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 SvelteKit page components."
66
since: "v2.12.0"
77
---
88

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

11-
> disallow exporting load functions in `*.svelte` module in Svelte Kit page components.
11+
> disallow exporting load functions in `*.svelte` module in SvelteKit page components.
1212
1313
## :book: Rule Details
1414

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
pageClass: "rule-details"
33
sidebarDepth: 0
44
title: "svelte/valid-prop-names-in-kit-pages"
5-
description: "disallow props other than data or errors in Svelte Kit page components."
5+
description: "disallow props other than data or errors in SvelteKit page components."
66
since: "v2.12.0"
77
---
88

99
# svelte/valid-prop-names-in-kit-pages
1010

11-
> disallow props other than data or errors in Svelte Kit page components.
11+
> disallow props other than data or errors in SvelteKit page components.
1212
1313
## :book: Rule Details
1414

src/rules/no-export-load-in-svelte-module-in-kit-pages.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ export default createRule("no-export-load-in-svelte-module-in-kit-pages", {
66
meta: {
77
docs: {
88
description:
9-
"disallow exporting load functions in `*.svelte` module in Svelte Kit page components.",
9+
"disallow exporting load functions in `*.svelte` module in SvelteKit page components.",
1010
category: "Possible Errors",
1111
// TODO Switch to recommended in the major version.
1212
recommended: false,
1313
},
1414
schema: [],
1515
messages: {
1616
unexpected:
17-
"disallow exporting load functions in `*.svelte` module in Svelte Kit page components.",
17+
"disallow exporting load functions in `*.svelte` module in SvelteKit page components.",
1818
},
1919
type: "problem",
2020
},

src/rules/valid-prop-names-in-kit-pages.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ export default createRule("valid-prop-names-in-kit-pages", {
99
meta: {
1010
docs: {
1111
description:
12-
"disallow props other than data or errors in Svelte Kit page components.",
12+
"disallow props other than data or errors in SvelteKit page components.",
1313
category: "Possible Errors",
1414
// TODO Switch to recommended in the major version.
1515
recommended: false,
1616
},
1717
schema: [],
1818
messages: {
1919
unexpected:
20-
"disallow props other than data or errors in Svelte Kit page components.",
20+
"disallow props other than data or errors in SvelteKit page components.",
2121
},
2222
type: "problem",
2323
},

src/utils/svelte-kit.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import { getPackageJson } from "./get-package-json"
1010
const isRunOnBrowser = !fs.readFileSync
1111

1212
/**
13-
* return true if it's a Svelte Kit page component.
13+
* return true if it's a SvelteKit page component.
1414
* @param context
1515
* @returns
1616
*/
1717
export function isKitPageComponent(context: RuleContext): boolean {
18-
// Hack: if it runs on browser, it regards as Svelte Kit project.
18+
// Hack: if it runs on browser, it regards as SvelteKit project.
1919
if (isRunOnBrowser) return true
2020
if (!hasSvelteKit(context.getFilename())) return false
2121
const routes =
@@ -40,7 +40,7 @@ export function isKitPageComponent(context: RuleContext): boolean {
4040
* @returns
4141
*/
4242
function hasSvelteKit(filePath: string): boolean {
43-
// Hack: if it runs on browser, it regards as Svelte Kit project.
43+
// Hack: if it runs on browser, it regards as SvelteKit project.
4444
if (isRunOnBrowser) return true
4545
try {
4646
const packageJson = getPackageJson(filePath)
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- message: "disallow exporting load functions in `*.svelte` module in Svelte Kit page components."
1+
- message: "disallow exporting load functions in `*.svelte` module in SvelteKit page components."
22
line: 2
33
column: 19
44
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- message: "disallow exporting load functions in `*.svelte` module in Svelte Kit page components."
1+
- message: "disallow exporting load functions in `*.svelte` module in SvelteKit page components."
22
line: 2
33
column: 16
44
suggestions: null
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
- message: disallow props other than data or errors in Svelte Kit page components.
1+
- message: disallow props other than data or errors in SvelteKit page components.
22
line: 2
33
column: 14
44
suggestions: null
5-
- message: disallow props other than data or errors in Svelte Kit page components.
5+
- message: disallow props other than data or errors in SvelteKit page components.
66
line: 3
77
column: 14
88
suggestions: null
9-
- message: disallow props other than data or errors in Svelte Kit page components.
9+
- message: disallow props other than data or errors in SvelteKit page components.
1010
line: 4
1111
column: 16
1212
suggestions: null
13-
- message: disallow props other than data or errors in Svelte Kit page components.
13+
- message: disallow props other than data or errors in SvelteKit page components.
1414
line: 4
1515
column: 21
1616
suggestions: null
17-
- message: disallow props other than data or errors in Svelte Kit page components.
17+
- message: disallow props other than data or errors in SvelteKit page components.
1818
line: 5
1919
column: 22
2020
suggestions: null
21-
- message: disallow props other than data or errors in Svelte Kit page components.
21+
- message: disallow props other than data or errors in SvelteKit page components.
2222
line: 5
2323
column: 37
2424
suggestions: null

0 commit comments

Comments
 (0)