From 0933c8c533e0165036b648fd9f303f0f5dd2f562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Tue, 7 Nov 2023 12:57:01 +0100 Subject: [PATCH 1/2] Updated eslint-plugin-svelte to v2.35 --- package-lock.json | 21 +++++++++++++++++---- package.json | 2 +- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 47f4f843..15b82746 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,7 +35,7 @@ "eslint-plugin-prefer-arrow-functions": "^3.2.4", "eslint-plugin-prettier": "^5.0.1", "eslint-plugin-simple-import-sort": "^10.0.0", - "eslint-plugin-svelte": "^2.34.1", + "eslint-plugin-svelte": "^2.35.0", "gas-webpack-plugin": "^2.5.0", "gulp": "^4.0.2", "gulp-filter": "^9.0.0", @@ -9358,6 +9358,18 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint-compat-utils": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/eslint-compat-utils/-/eslint-compat-utils-0.1.2.tgz", + "integrity": "sha512-Jia4JDldWnFNIru1Ehx1H5s9/yxiRHY/TimCuUc0jNexew3cF1gI6CYZil1ociakfWO3rRqFjl1mskBblB3RYg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "eslint": ">=6.0.0" + } + }, "node_modules/eslint-config-prettier": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz", @@ -9575,14 +9587,15 @@ } }, "node_modules/eslint-plugin-svelte": { - "version": "2.34.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-2.34.1.tgz", - "integrity": "sha512-HnLzYevh9bLL0Rj2d4dmZY9EutN0BL5JsJRHqtJFIyaEmdxxd3ZuY5zNoSjIFhctFMSntsClbd6TwYjgaOY0Xw==", + "version": "2.35.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-2.35.0.tgz", + "integrity": "sha512-3WDFxNrkXaMlpqoNo3M1ZOQuoFLMO9+bdnN6oVVXaydXC7nzCJuGy9a0zqoNDHMSRPYt0Rqo6hIdHMEaI5sQnw==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@jridgewell/sourcemap-codec": "^1.4.14", "debug": "^4.3.1", + "eslint-compat-utils": "^0.1.2", "esutils": "^2.0.3", "known-css-properties": "^0.29.0", "postcss": "^8.4.5", diff --git a/package.json b/package.json index 1d7ef2a8..aa84b3da 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "eslint-plugin-prefer-arrow-functions": "^3.2.4", "eslint-plugin-prettier": "^5.0.1", "eslint-plugin-simple-import-sort": "^10.0.0", - "eslint-plugin-svelte": "^2.34.1", + "eslint-plugin-svelte": "^2.35.0", "gas-webpack-plugin": "^2.5.0", "gulp": "^4.0.2", "gulp-filter": "^9.0.0", From 6be8afa6744ab661411e147f5023e3ead0d0be3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Tue, 7 Nov 2023 12:57:41 +0100 Subject: [PATCH 2/2] Added eslint rule svelte/no-inline-styles --- .eslintrc.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.json b/.eslintrc.json index 25deea7b..5c7a0a25 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -91,6 +91,7 @@ "svelte/derived-has-same-inputs-outputs": "error", "svelte/no-extra-reactive-curlies": "error", "svelte/no-immutable-reactive-statements": "error", + "svelte/no-inline-styles": "error", "svelte/no-reactive-reassign": "error", "svelte/no-unused-class-name": [ "error",