From 2a729097e7eb5a00ed7c7edde3df8f9057860f30 Mon Sep 17 00:00:00 2001 From: Valexr Date: Mon, 23 Sep 2024 08:13:55 +0200 Subject: [PATCH] updeps --- eslint.config.mjs | 38 +++++++++++++++++++++++++++++++++++++ package.json | 9 ++++++--- packages/react/package.json | 2 +- packages/vue/package.json | 4 ++-- www/package.json | 2 +- 5 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 eslint.config.mjs diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 00000000..ba38f944 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,38 @@ +import typescriptEslint from "@typescript-eslint/eslint-plugin"; +import globals from "globals"; +import tsParser from "@typescript-eslint/parser"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import js from "@eslint/js"; +import { FlatCompat } from "@eslint/eslintrc"; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, + allConfig: js.configs.all +}); + +export default [...compat.extends("plugin:@typescript-eslint/recommended"), { + plugins: { + "@typescript-eslint": typescriptEslint, + }, + + languageOptions: { + globals: { + ...globals.node, + }, + + parser: tsParser, + }, + + rules: { + semi: 0, + "no-underscore-dangle": 0, + "no-unused-expressions": 0, + "import/prefer-default-export": 0, + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-unused-expressions": "off", + }, +}]; \ No newline at end of file diff --git a/package.json b/package.json index 8e5e833d..656f8c62 100644 --- a/package.json +++ b/package.json @@ -106,12 +106,15 @@ "singleQuote": true }, "devDependencies": { - "@types/eslint": "^8.56.12", + "@eslint/eslintrc": "^3.1.0", + "@eslint/js": "^9.11.0", + "@types/eslint": "^9.6.1", "@types/node": "^22.5.5", "@typescript-eslint/eslint-plugin": "^8.6.0", "@typescript-eslint/parser": "^8.6.0", - "esbuild": "^0.23.1", - "eslint": "^8.57.1", + "esbuild": "^0.24.0", + "eslint": "^9.11.0", + "globals": "^15.9.0", "open-props": "^1.7.6", "prettier": "^3.3.3", "typescript": "^5.6.2" diff --git a/packages/react/package.json b/packages/react/package.json index 7a50ea35..40075b8e 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -54,7 +54,7 @@ "@slidy/easing": "workspace:*" }, "dependencies": { - "@types/react": "^18.3.7", + "@types/react": "^18.3.8", "@types/react-dom": "^18.3.0", "clsx": "^2.1.1", "react": "^18.3.1", diff --git a/packages/vue/package.json b/packages/vue/package.json index 6e9ac2ce..8193f17e 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -51,13 +51,13 @@ }, "devDependencies": { "@slidy/core": "workspace:*", - "@vue/compiler-sfc": "^3.5.6", + "@vue/compiler-sfc": "^3.5.8", "@vue/eslint-config-prettier": "^9.0.0", "@vue/eslint-config-typescript": "^12.0.0", "@vue/tsconfig": "^0.5.1", "esbuild-plugin-vue-next": "^0.1.4", "eslint-plugin-vue": "^9.28.0", - "vue": "^3.5.6", + "vue": "^3.5.8", "vue-tsc": "^1.8.27" } } \ No newline at end of file diff --git a/www/package.json b/www/package.json index a595b4d3..031d818f 100644 --- a/www/package.json +++ b/www/package.json @@ -31,6 +31,6 @@ "svelte-check": "^4.0.2", "svelte-preprocess": "^6.0.2", "unist-util-visit": "^4.1.2", - "vite": "^5.4.6" + "vite": "^5.4.7" } } \ No newline at end of file