Skip to content

Commit f9a9372

Browse files
fix: eslint/prettier configuration
1 parent 6965264 commit f9a9372

7 files changed

+220
-52
lines changed

.eslintignore

-13
This file was deleted.

.eslintrc.cjs

-30
This file was deleted.

.prettierrc

-9
This file was deleted.

eslint.config.js

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import prettier from 'eslint-config-prettier';
2+
import js from '@eslint/js';
3+
import svelte from 'eslint-plugin-svelte';
4+
import globals from 'globals';
5+
import ts from 'typescript-eslint';
6+
7+
export default ts.config(
8+
js.configs.recommended,
9+
...ts.configs.recommended,
10+
...svelte.configs['flat/recommended'],
11+
prettier,
12+
...svelte.configs['flat/prettier'],
13+
{
14+
languageOptions: {
15+
globals: {
16+
...globals.browser,
17+
...globals.node
18+
}
19+
}
20+
},
21+
{
22+
files: ['**/*.svelte'],
23+
24+
languageOptions: {
25+
parserOptions: {
26+
parser: ts.parser
27+
}
28+
}
29+
},
30+
{
31+
ignores: ['build/', '.svelte-kit/', 'dist/']
32+
}
33+
);

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"eslint-config-prettier": "^8.10.0",
6060
"eslint-plugin-svelte": "^2.40.0",
6161
"fuse.js": "^7.0.0",
62+
"globals": "^15.12.0",
6263
"highlight.js": "^11.9.0",
6364
"markdown-it": "^14.1.0",
6465
"meilisearch": "^0.37.0",
@@ -82,6 +83,7 @@
8283
"tailwindcss": "4.0.0-alpha.17",
8384
"tslib": "^2.6.3",
8485
"typescript": "^5.5.2",
86+
"typescript-eslint": "^8.13.0",
8587
"vite": "^5.3.1",
8688
"vite-plugin-dynamic-import": "^1.5.0",
8789
"vite-plugin-image-optimizer": "^1.1.8",

0 commit comments

Comments
 (0)