Skip to content

Commit ffff1ed

Browse files
authored
fix: set ESLint config type to Config instead of FlatConfig (#11453)
1 parent b8363fc commit ffff1ed

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

.changeset/silver-hornets-eat.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-svelte": patch
3+
---
4+
5+
fix: set the correct type for the ESLint config object

packages/create-svelte/shared/+eslint+prettier+typescript/.eslintrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @type { import("eslint").Linter.FlatConfig } */
1+
/** @type { import("eslint").Linter.Config } */
22
module.exports = {
33
root: true,
44
extends: [

packages/create-svelte/shared/+eslint+prettier-typescript/.eslintrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @type { import("eslint").Linter.FlatConfig } */
1+
/** @type { import("eslint").Linter.Config } */
22
module.exports = {
33
root: true,
44
extends: ['eslint:recommended', 'plugin:svelte/recommended', 'prettier'],

packages/create-svelte/shared/+eslint+typescript/.eslintrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @type { import("eslint").Linter.FlatConfig } */
1+
/** @type { import("eslint").Linter.Config } */
22
module.exports = {
33
root: true,
44
extends: [

packages/create-svelte/shared/+eslint-typescript/.eslintrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @type { import("eslint").Linter.FlatConfig } */
1+
/** @type { import("eslint").Linter.Config } */
22
module.exports = {
33
root: true,
44
extends: ['eslint:recommended', 'plugin:svelte/recommended'],
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"devDependencies": {
3-
"eslint": "^8.28.0",
4-
"eslint-plugin-svelte": "^2.30.0"
3+
"@types/eslint": "8.56.0",
4+
"eslint": "^8.56.0",
5+
"eslint-plugin-svelte": "^2.35.1"
56
}
67
}

0 commit comments

Comments
 (0)