Skip to content

Commit

Permalink
fix: disable typescript-eslint until it supports eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Apr 14, 2024
1 parent ef0aa0c commit 9967b82
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 21 deletions.
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 @@ -20,12 +21,12 @@ export default [
}
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser
}
}
files: ['**/*.svelte']
// languageOptions: {
// parserOptions: {
// parser: ts.parser
// }
// }
},
{
ignores: ['build/', '.svelte-kit/', 'dist/']
Expand Down
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 @@ -17,12 +18,12 @@ 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.

0 comments on commit 9967b82

Please sign in to comment.