File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import eslint from '@eslint/js' ;
2+ import ts from 'typescript-eslint' ;
3+ import svelte from 'eslint-plugin-svelte' ;
4+ import globals from 'globals' ;
5+
6+ export default ts . config (
7+ eslint . configs . recommended ,
8+ ...ts . configs . recommended ,
9+ ...svelte . configs [ 'flat/recommended' ] ,
10+ {
11+ languageOptions : {
12+ globals : {
13+ ...globals . browser ,
14+ ...globals . node
15+ }
16+ }
17+ } ,
18+ {
19+ files : [ '**/*.svelte' ] ,
20+ languageOptions : {
21+ parserOptions : {
22+ parser : ts . parser
23+ }
24+ }
25+ } ,
26+ {
27+ ignores : [ 'build/' , '.svelte-kit/' , 'dist/' ]
28+ }
29+ ) ;
Original file line number Diff line number Diff line change 1010 "lint" : " eslint src"
1111 },
1212 "devDependencies" : {
13+ "@eslint/js" : " ^10.0.1" ,
1314 "@sveltejs/adapter-auto" : " ^3.0.0" ,
1415 "@sveltejs/kit" : " ^2.0.0" ,
1516 "@sveltejs/vite-plugin-svelte" : " ^4.0.0" ,
1617 "@tailwindcss/vite" : " ^4.2.2" ,
18+ "@typescript-eslint/eslint-plugin" : " ^8.58.0" ,
19+ "@typescript-eslint/parser" : " ^8.58.0" ,
1720 "eslint" : " ^9.0.0" ,
21+ "eslint-plugin-svelte" : " ^3.17.0" ,
22+ "globals" : " ^17.4.0" ,
1823 "svelte" : " ^5.0.0" ,
1924 "svelte-check" : " ^4.0.0" ,
2025 "tailwindcss" : " ^4.0.0" ,
2126 "typescript" : " ^5.0.0" ,
27+ "typescript-eslint" : " ^8.58.0" ,
2228 "vite" : " ^6.0.0"
2329 },
24- "type" : " module"
30+ "type" : " module" ,
31+ "packageManager" : " pnpm@10.24.0+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a"
2532}
You can’t perform that action at this time.
0 commit comments