Skip to content

Commit

Permalink
fix: set ESLint config type to Config instead of FlatConfig (#11453)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltigerchino authored Dec 23, 2023
1 parent b8363fc commit ffff1ed
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-hornets-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-svelte": patch
---

fix: set the correct type for the ESLint config object
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type { import("eslint").Linter.FlatConfig } */
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
extends: [
Expand Down
Original file line number Diff line number Diff line change
@@ -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'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type { import("eslint").Linter.FlatConfig } */
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
extends: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type { import("eslint").Linter.FlatConfig } */
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
extends: ['eslint:recommended', 'plugin:svelte/recommended'],
Expand Down
5 changes: 3 additions & 2 deletions packages/create-svelte/shared/+eslint/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit ffff1ed

Please sign in to comment.