Skip to content

Commit ade4b78

Browse files
committed
Upgrade svelte-check to version 4
1 parent 524597c commit ade4b78

File tree

4 files changed

+698
-688
lines changed

4 files changed

+698
-688
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
id-token: write
5555
steps:
5656
- name: Configure Deployment
57-
uses: actions/configure-pages@v4
57+
uses: actions/configure-pages@v5
5858
- name: Deploy
5959
id: deployment
6060
uses: actions/deploy-pages@v4

eslint.config.js

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import js from '@eslint/js';
2-
import ts from 'typescript-eslint';
3-
import svelte from 'eslint-plugin-svelte';
1+
import eslint from '@eslint/js';
42
import prettier from 'eslint-config-prettier';
3+
import svelte from 'eslint-plugin-svelte';
54
import globals from 'globals';
5+
import tseslint from 'typescript-eslint';
66

7-
/** @type {import('eslint').Linter.Config[]} */
8-
export default [
9-
js.configs.recommended,
10-
...ts.configs.recommended,
7+
export default tseslint.config(
8+
eslint.configs.recommended,
9+
...tseslint.configs.recommended,
1110
...svelte.configs['flat/recommended'],
1211
prettier,
1312
...svelte.configs['flat/prettier'],
@@ -23,11 +22,11 @@ export default [
2322
files: ['**/*.svelte'],
2423
languageOptions: {
2524
parserOptions: {
26-
parser: ts.parser
25+
parser: tseslint.parser
2726
}
2827
}
2928
},
3029
{
3130
ignores: ['build/', '.svelte-kit/', 'dist/']
3231
}
33-
];
32+
);

0 commit comments

Comments
 (0)