Skip to content

Commit

Permalink
Update dependencies, improve ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
WarningImHack3r committed Sep 25, 2024
1 parent d49086e commit c2055d6
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 229 deletions.
27 changes: 9 additions & 18 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import js from "@eslint/js";
import ts from "typescript-eslint";
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import svelte from "eslint-plugin-svelte";
import prettier from "eslint-config-prettier";
import prettierConfig from "eslint-config-prettier";
import globals from "globals";

/** @type {import("eslint").Linter.FlatConfig[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...svelte.configs["flat/recommended"],
prettier,
prettierConfig,
...svelte.configs["flat/prettier"],
{
languageOptions: {
Expand All @@ -23,19 +22,11 @@ export default [
files: ["**/*.svelte"],
languageOptions: {
parserOptions: {
parser: ts.parser
parser: tseslint.parser
}
},
rules: {
// Prefer `{ myFunction: () => {} }` over `{ myFunction() {} }`
// https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
"@typescript-eslint/method-signature-style": ["error", "property"],
// Force the use of `import type { A }` over `import { type A }`
// https://typescript-eslint.io/rules/no-import-type-side-effects/
"@typescript-eslint/no-import-type-side-effects": "error"
}
},
{
ignores: ["build/", ".svelte-kit/", "dist/", "src/lib/components/ui/", "src/lib/utils.[jt]s"]
}
];
);
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,36 @@
"format": "prettier --write ."
},
"devDependencies": {
"@shikijs/rehype": "^1.17.6",
"@sveltejs/adapter-vercel": "^5.4.3",
"@sveltejs/kit": "^2.5.27",
"@shikijs/rehype": "^1.18.0",
"@sveltejs/adapter-vercel": "^5.4.4",
"@sveltejs/kit": "^2.5.28",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@tailwindcss/typography": "^0.5.15",
"@total-typescript/ts-reset": "^0.6.1",
"@types/eslint": "^9.6.1",
"@types/eslint-config-prettier": "^6.11.3",
"@types/semver": "^7.5.8",
"@vercel/speed-insights": "^1.0.12",
"arctic": "^1.9.2",
"autoprefixer": "^10.4.20",
"bits-ui": "^0.21.13",
"bits-ui": "^0.21.15",
"clsx": "^2.1.1",
"eslint": "^9.10.0",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.44.0",
"globals": "^15.9.0",
"lucia": "^3.2.0",
"lucide-svelte": "^0.441.0",
"lucide-svelte": "^0.446.0",
"mode-watcher": "^0.4.1",
"octokit": "^4.0.2",
"postcss": "^8.4.47",
"postcss-load-config": "^6.0.1",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-tailwindcss": "^0.6.6",
"prettier-plugin-tailwindcss": "^0.6.8",
"rehype-raw": "^7.0.0",
"semver": "^7.6.3",
"shiki": "^1.17.6",
"shiki": "^1.18.0",
"svelte": "^4.2.19",
"svelte-check": "^4.0.2",
"svelte-exmarkdown": "^3.0.5",
Expand All @@ -51,13 +52,13 @@
"sveltekit-search-params": "^3.0.0",
"tailwind-merge": "^2.5.2",
"tailwind-variants": "^0.2.1",
"tailwindcss": "^3.4.11",
"tailwindcss": "^3.4.13",
"tslib": "^2.7.0",
"typescript": "^5.6.2",
"typescript-eslint": "^8.5.0",
"vite": "^5.4.5",
"vite-plugin-lucide-preprocess": "^1.0.4"
"typescript-eslint": "^8.7.0",
"vite": "^5.4.8",
"vite-plugin-lucide-preprocess": "^1.1.0"
},
"type": "module",
"packageManager": "pnpm@9.10.0"
"packageManager": "pnpm@9.11.0"
}
Loading

0 comments on commit c2055d6

Please sign in to comment.