eslint-plugin-svelte 2.29.0 → 2.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -310,7 +310,7 @@ These rules relate to possible syntax or logic errors in Svelte code:
|
|
|
310
310
|
| [svelte/no-dupe-style-properties](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-style-properties/) | disallow duplicate style properties | :star: |
|
|
311
311
|
| [svelte/no-dupe-use-directives](https://sveltejs.github.io/eslint-plugin-svelte/rules/no-dupe-use-directives/) | disallow duplicate `use:` directives | |
|
|
312
312
|
| [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
|
|
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. | |
|
|
314
314
|
| [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: |
|
|
315
315
|
| [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: |
|
|
316
316
|
| [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:
|
|
|
320
320
|
| [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 | |
|
|
321
321
|
| [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: |
|
|
322
322
|
| [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
|
|
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. | |
|
|
324
324
|
|
|
325
325
|
## Security Vulnerability
|
|
326
326
|
|
package/lib/meta.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name: "eslint-plugin-svelte";
|
|
2
|
-
export declare const version: "2.
|
|
2
|
+
export declare const version: "2.30.0";
|
package/lib/meta.js
CHANGED
|
@@ -5,13 +5,13 @@ const svelte_kit_1 = require("../utils/svelte-kit");
|
|
|
5
5
|
exports.default = (0, utils_1.createRule)("no-export-load-in-svelte-module-in-kit-pages", {
|
|
6
6
|
meta: {
|
|
7
7
|
docs: {
|
|
8
|
-
description: "disallow exporting load functions in `*.svelte` module in
|
|
8
|
+
description: "disallow exporting load functions in `*.svelte` module in SvelteKit page components.",
|
|
9
9
|
category: "Possible Errors",
|
|
10
10
|
recommended: false,
|
|
11
11
|
},
|
|
12
12
|
schema: [],
|
|
13
13
|
messages: {
|
|
14
|
-
unexpected: "disallow exporting load functions in `*.svelte` module in
|
|
14
|
+
unexpected: "disallow exporting load functions in `*.svelte` module in SvelteKit page components.",
|
|
15
15
|
},
|
|
16
16
|
type: "problem",
|
|
17
17
|
},
|
|
@@ -6,13 +6,13 @@ const EXPECTED_PROP_NAMES = ["data", "errors", "form", "snapshot"];
|
|
|
6
6
|
exports.default = (0, utils_1.createRule)("valid-prop-names-in-kit-pages", {
|
|
7
7
|
meta: {
|
|
8
8
|
docs: {
|
|
9
|
-
description: "disallow props other than data or errors in
|
|
9
|
+
description: "disallow props other than data or errors in SvelteKit page components.",
|
|
10
10
|
category: "Possible Errors",
|
|
11
11
|
recommended: false,
|
|
12
12
|
},
|
|
13
13
|
schema: [],
|
|
14
14
|
messages: {
|
|
15
|
-
unexpected: "disallow props other than data or errors in
|
|
15
|
+
unexpected: "disallow props other than data or errors in SvelteKit page components.",
|
|
16
16
|
},
|
|
17
17
|
type: "problem",
|
|
18
18
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-svelte",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.30.0",
|
|
4
4
|
"description": "ESLint plugin for Svelte using AST",
|
|
5
5
|
"repository": "git+https://github.com/sveltejs/eslint-plugin-svelte.git",
|
|
6
6
|
"homepage": "https://sveltejs.github.io/eslint-plugin-svelte",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"funding": "https://github.com/sponsors/ota-meshi",
|
|
12
12
|
"license": "MIT",
|
|
13
|
-
"packageManager": "pnpm@7.32.
|
|
13
|
+
"packageManager": "pnpm@7.32.5",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": "^14.17.0 || >=16.0.0"
|
|
16
16
|
},
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"eslint": "^7.0.0 || ^8.0.0-0",
|
|
30
|
-
"svelte": "^3.37.0"
|
|
30
|
+
"svelte": "^3.37.0 || ^4.0.0-0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependenciesMeta": {
|
|
33
33
|
"svelte": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"postcss": "^8.4.5",
|
|
44
44
|
"postcss-load-config": "^3.1.4",
|
|
45
45
|
"postcss-safe-parser": "^6.0.0",
|
|
46
|
-
"svelte-eslint-parser": "^0.
|
|
46
|
+
"svelte-eslint-parser": "^0.30.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@1stg/browserslist-config": "^1.2.3",
|
|
@@ -131,9 +131,9 @@
|
|
|
131
131
|
"stylelint": "^15.0.0",
|
|
132
132
|
"stylelint-config-standard": "^33.0.0",
|
|
133
133
|
"stylus": "^0.59.0",
|
|
134
|
-
"svelte": "^
|
|
134
|
+
"svelte": "^4.0.0-0",
|
|
135
135
|
"svelte-adapter-ghpages": "0.1.0",
|
|
136
|
-
"svelte-i18n": "^3.
|
|
136
|
+
"svelte-i18n": "^3.6.0",
|
|
137
137
|
"tslib": "^2.5.0",
|
|
138
138
|
"type-coverage": "^2.22.0",
|
|
139
139
|
"typescript": "^5.0.0",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"prebuild": "pnpm run clean",
|
|
178
178
|
"prerelease": "pnpm run clean && pnpm run build",
|
|
179
179
|
"release": "changeset publish",
|
|
180
|
-
"svelte-kit": "
|
|
180
|
+
"svelte-kit": "env-cmd -e sveltekit node node_modules/vite/bin/vite.js",
|
|
181
181
|
"test": "pnpm run mocha \"tests/src/**/*.ts\" --reporter dot --timeout 60000",
|
|
182
182
|
"test:debug": "env-cmd -e debug pnpm run test",
|
|
183
183
|
"ts": "node -r esbuild-register",
|