Skip to content

Commit

Permalink
chore: update typescript-eslint configs (#12721)
Browse files Browse the repository at this point in the history
Fixes #12720

Used the config() helper function
  • Loading branch information
hyunbinseo authored Sep 26, 2024
1 parent a233f53 commit 1a3a99f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-worms-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

chore: update typescript-eslint configs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import js from '@eslint/js';
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import eslint from '@eslint/js';
import prettier from 'eslint-config-prettier';
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';
import tseslint from 'typescript-eslint';

/** @type {import('eslint').Linter.Config[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
Expand All @@ -23,11 +22,11 @@ export default [
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser
parser: tseslint.parser
}
}
},
{
ignores: ['build/', '.svelte-kit/', 'dist/']
}
];
);
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import js from '@eslint/js';
import ts from 'typescript-eslint';
import eslint from '@eslint/js';
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';
import tseslint from 'typescript-eslint';

/** @type {import('eslint').Linter.Config[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...svelte.configs['flat/recommended'],
{
languageOptions: {
Expand All @@ -20,11 +19,11 @@ export default [
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser
parser: tseslint.parser
}
}
},
{
ignores: ['build/', '.svelte-kit/', 'dist/']
}
];
);

0 comments on commit 1a3a99f

Please sign in to comment.