Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable typescript-eslint until it supports eslint v9 #12121

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/friendly-tomatoes-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-svelte": patch
---

fix: disable typescript-eslint until it supports eslint v9
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import js from '@eslint/js';
import ts from 'typescript-eslint';
// add this once typescript-eslint supports eslint 9
// import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import globals from 'globals';

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
// ...ts.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
Expand All @@ -19,14 +20,14 @@ export default [
}
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser
}
}
},
// {
// files: ['**/*.svelte'],
// languageOptions: {
// parserOptions: {
// parser: ts.parser
// }
// }
// },
{
ignores: ['build/', '.svelte-kit/', 'dist/']
}
Expand Down
21 changes: 11 additions & 10 deletions packages/create-svelte/shared/+eslint+typescript/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import js from '@eslint/js';
import ts from 'typescript-eslint';
// add this once typescript-eslint supports eslint 9
// import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
// ...ts.configs.recommended,
...svelte.configs['flat/recommended'],
{
languageOptions: {
Expand All @@ -16,14 +17,14 @@ export default [
}
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser
}
}
},
// {
// files: ['**/*.svelte'],
// languageOptions: {
// parserOptions: {
// parser: ts.parser
// }
// }
// },
{
ignores: ['build/', '.svelte-kit/', 'dist/']
}
Expand Down
5 changes: 0 additions & 5 deletions packages/create-svelte/shared/+eslint+typescript/package.json

This file was deleted.