Skip to content

Commit c2055d6

Browse files
Update dependencies, improve ESLint config
1 parent d49086e commit c2055d6

File tree

3 files changed

+236
-229
lines changed

3 files changed

+236
-229
lines changed

eslint.config.js

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
import js from "@eslint/js";
2-
import ts from "typescript-eslint";
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
33
import svelte from "eslint-plugin-svelte";
4-
import prettier from "eslint-config-prettier";
4+
import prettierConfig from "eslint-config-prettier";
55
import globals from "globals";
66

7-
/** @type {import("eslint").Linter.FlatConfig[]} */
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"],
12-
prettier,
11+
prettierConfig,
1312
...svelte.configs["flat/prettier"],
1413
{
1514
languageOptions: {
@@ -23,19 +22,11 @@ export default [
2322
files: ["**/*.svelte"],
2423
languageOptions: {
2524
parserOptions: {
26-
parser: ts.parser
25+
parser: tseslint.parser
2726
}
28-
},
29-
rules: {
30-
// Prefer `{ myFunction: () => {} }` over `{ myFunction() {} }`
31-
// https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
32-
"@typescript-eslint/method-signature-style": ["error", "property"],
33-
// Force the use of `import type { A }` over `import { type A }`
34-
// https://typescript-eslint.io/rules/no-import-type-side-effects/
35-
"@typescript-eslint/no-import-type-side-effects": "error"
3627
}
3728
},
3829
{
3930
ignores: ["build/", ".svelte-kit/", "dist/", "src/lib/components/ui/", "src/lib/utils.[jt]s"]
4031
}
41-
];
32+
);

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,36 @@
1313
"format": "prettier --write ."
1414
},
1515
"devDependencies": {
16-
"@shikijs/rehype": "^1.17.6",
17-
"@sveltejs/adapter-vercel": "^5.4.3",
18-
"@sveltejs/kit": "^2.5.27",
16+
"@shikijs/rehype": "^1.18.0",
17+
"@sveltejs/adapter-vercel": "^5.4.4",
18+
"@sveltejs/kit": "^2.5.28",
1919
"@sveltejs/vite-plugin-svelte": "^3.1.2",
2020
"@tailwindcss/typography": "^0.5.15",
2121
"@total-typescript/ts-reset": "^0.6.1",
2222
"@types/eslint": "^9.6.1",
23+
"@types/eslint-config-prettier": "^6.11.3",
2324
"@types/semver": "^7.5.8",
2425
"@vercel/speed-insights": "^1.0.12",
2526
"arctic": "^1.9.2",
2627
"autoprefixer": "^10.4.20",
27-
"bits-ui": "^0.21.13",
28+
"bits-ui": "^0.21.15",
2829
"clsx": "^2.1.1",
29-
"eslint": "^9.10.0",
30+
"eslint": "^9.11.1",
3031
"eslint-config-prettier": "^9.1.0",
3132
"eslint-plugin-svelte": "^2.44.0",
3233
"globals": "^15.9.0",
3334
"lucia": "^3.2.0",
34-
"lucide-svelte": "^0.441.0",
35+
"lucide-svelte": "^0.446.0",
3536
"mode-watcher": "^0.4.1",
3637
"octokit": "^4.0.2",
3738
"postcss": "^8.4.47",
3839
"postcss-load-config": "^6.0.1",
3940
"prettier": "^3.3.3",
4041
"prettier-plugin-svelte": "^3.2.6",
41-
"prettier-plugin-tailwindcss": "^0.6.6",
42+
"prettier-plugin-tailwindcss": "^0.6.8",
4243
"rehype-raw": "^7.0.0",
4344
"semver": "^7.6.3",
44-
"shiki": "^1.17.6",
45+
"shiki": "^1.18.0",
4546
"svelte": "^4.2.19",
4647
"svelte-check": "^4.0.2",
4748
"svelte-exmarkdown": "^3.0.5",
@@ -51,13 +52,13 @@
5152
"sveltekit-search-params": "^3.0.0",
5253
"tailwind-merge": "^2.5.2",
5354
"tailwind-variants": "^0.2.1",
54-
"tailwindcss": "^3.4.11",
55+
"tailwindcss": "^3.4.13",
5556
"tslib": "^2.7.0",
5657
"typescript": "^5.6.2",
57-
"typescript-eslint": "^8.5.0",
58-
"vite": "^5.4.5",
59-
"vite-plugin-lucide-preprocess": "^1.0.4"
58+
"typescript-eslint": "^8.7.0",
59+
"vite": "^5.4.8",
60+
"vite-plugin-lucide-preprocess": "^1.1.0"
6061
},
6162
"type": "module",
62-
"packageManager": "pnpm@9.10.0"
63+
"packageManager": "pnpm@9.11.0"
6364
}

0 commit comments

Comments
 (0)