From 4bbe6493246d3de89fd2ba14b78ca94331bb3d60 Mon Sep 17 00:00:00 2001 From: Tee Ming Date: Sat, 23 Dec 2023 18:34:52 +0800 Subject: [PATCH 1/3] add eslint types and bump eslint versions --- packages/create-svelte/shared/+eslint/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/create-svelte/shared/+eslint/package.json b/packages/create-svelte/shared/+eslint/package.json index 375357e2deae..7f67ae6ae775 100644 --- a/packages/create-svelte/shared/+eslint/package.json +++ b/packages/create-svelte/shared/+eslint/package.json @@ -1,6 +1,7 @@ { "devDependencies": { - "eslint": "^8.28.0", - "eslint-plugin-svelte": "^2.30.0" + "@types/eslint": "8.56.0", + "eslint": "^8.56.0", + "eslint-plugin-svelte": "^2.35.1" } } From 33f964419428a5ae652f65b14b1851c6c507ae23 Mon Sep 17 00:00:00 2001 From: Tee Ming Date: Sat, 23 Dec 2023 19:30:21 +0800 Subject: [PATCH 2/3] fix config types --- .../shared/+eslint+prettier+typescript/.eslintrc.cjs | 2 +- .../shared/+eslint+prettier-typescript/.eslintrc.cjs | 2 +- packages/create-svelte/shared/+eslint+typescript/.eslintrc.cjs | 2 +- packages/create-svelte/shared/+eslint-typescript/.eslintrc.cjs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/create-svelte/shared/+eslint+prettier+typescript/.eslintrc.cjs b/packages/create-svelte/shared/+eslint+prettier+typescript/.eslintrc.cjs index 8304ad3d3cee..0b757582c066 100644 --- a/packages/create-svelte/shared/+eslint+prettier+typescript/.eslintrc.cjs +++ b/packages/create-svelte/shared/+eslint+prettier+typescript/.eslintrc.cjs @@ -1,4 +1,4 @@ -/** @type { import("eslint").Linter.FlatConfig } */ +/** @type { import("eslint").Linter.Config } */ module.exports = { root: true, extends: [ diff --git a/packages/create-svelte/shared/+eslint+prettier-typescript/.eslintrc.cjs b/packages/create-svelte/shared/+eslint+prettier-typescript/.eslintrc.cjs index 8c4825530371..50b97a54680b 100644 --- a/packages/create-svelte/shared/+eslint+prettier-typescript/.eslintrc.cjs +++ b/packages/create-svelte/shared/+eslint+prettier-typescript/.eslintrc.cjs @@ -1,4 +1,4 @@ -/** @type { import("eslint").Linter.FlatConfig } */ +/** @type { import("eslint").Linter.Config } */ module.exports = { root: true, extends: ['eslint:recommended', 'plugin:svelte/recommended', 'prettier'], diff --git a/packages/create-svelte/shared/+eslint+typescript/.eslintrc.cjs b/packages/create-svelte/shared/+eslint+typescript/.eslintrc.cjs index 108bbb0f6941..419521f727e7 100644 --- a/packages/create-svelte/shared/+eslint+typescript/.eslintrc.cjs +++ b/packages/create-svelte/shared/+eslint+typescript/.eslintrc.cjs @@ -1,4 +1,4 @@ -/** @type { import("eslint").Linter.FlatConfig } */ +/** @type { import("eslint").Linter.Config } */ module.exports = { root: true, extends: [ diff --git a/packages/create-svelte/shared/+eslint-typescript/.eslintrc.cjs b/packages/create-svelte/shared/+eslint-typescript/.eslintrc.cjs index 72b14c059d3d..702ea973b33e 100644 --- a/packages/create-svelte/shared/+eslint-typescript/.eslintrc.cjs +++ b/packages/create-svelte/shared/+eslint-typescript/.eslintrc.cjs @@ -1,4 +1,4 @@ -/** @type { import("eslint").Linter.FlatConfig } */ +/** @type { import("eslint").Linter.Config } */ module.exports = { root: true, extends: ['eslint:recommended', 'plugin:svelte/recommended'], From b1084ba6b012030d9b999d0984b8d72870d607df Mon Sep 17 00:00:00 2001 From: Tee Ming Date: Sat, 23 Dec 2023 19:31:37 +0800 Subject: [PATCH 3/3] changeset --- .changeset/silver-hornets-eat.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/silver-hornets-eat.md diff --git a/.changeset/silver-hornets-eat.md b/.changeset/silver-hornets-eat.md new file mode 100644 index 000000000000..25e8f1c96dde --- /dev/null +++ b/.changeset/silver-hornets-eat.md @@ -0,0 +1,5 @@ +--- +"create-svelte": patch +--- + +fix: set the correct type for the ESLint config object