1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-10-11 17:06:21 +02:00

build(deps): update latest

This commit is contained in:
2025-10-11 16:59:42 +02:00
parent 9c20844d89
commit be738a1c8d
29 changed files with 1456 additions and 1536 deletions

View File

@@ -2,42 +2,32 @@ import nextPlugin from "@next/eslint-plugin-next"
import configConventions from "eslint-config-conventions"
import importXPlugin from "eslint-plugin-import-x"
import reactPlugin from "eslint-plugin-react"
import reactHooksPlugin from "eslint-plugin-react-hooks"
import typescriptESLint from "typescript-eslint"
import reactHooks from "eslint-plugin-react-hooks"
import { defineConfig, globalIgnores } from "eslint/config"
export default typescriptESLint.config(
export default defineConfig(
...configConventions,
reactHooksPlugin.configs.recommended,
reactPlugin.configs.flat.recommended,
{
ignores: [
".next",
"**/next.config.ts",
"**/eslint.config.js",
"**/tailwind.config.js",
"**/postcss.config.js",
"**/kysely.config.ts",
],
},
globalIgnores(["**/kysely.config.ts"]),
{
name: "config-eslint",
settings: {
react: {
version: "19.1.1",
version: "19.2.0",
},
},
plugins: {
"@next/next": nextPlugin,
"import-x": importXPlugin,
"react-hooks": reactHooks,
},
rules: {
...nextPlugin.configs.recommended.rules,
...nextPlugin.configs["core-web-vitals"].rules,
...reactHooks.configs.recommended.rules,
"@next/next/no-html-link-for-pages": "off",
"@next/next/no-img-element": "off",
"react-hooks/react-compiler": "error",
"react/jsx-no-target-blank": "off",
"react/no-unknown-property": "off",
"react/react-in-jsx-scope": "off",

View File

@@ -1,7 +1,5 @@
import type typescriptESLint from "typescript-eslint"
import type { defineConfig } from "eslint/config"
declare const eslintConfigConventions: ReturnType<
typeof typescriptESLint.config
>
declare const eslintConfig: ReturnType<typeof defineConfig>
export default eslintConfigConventions
export default eslintConfig

View File

@@ -1,7 +1,8 @@
import typescriptESLint from "typescript-eslint"
import { defineConfig } from "eslint/config"
import config from "@repo/config-eslint"
export default typescriptESLint.config(...config, {
export default defineConfig(...config, {
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parser: typescriptESLint.parser,

View File

@@ -17,6 +17,7 @@
"isolatedModules": true,
"esModuleInterop": true,
"allowImportingTsExtensions": true,
"allowArbitraryExtensions": true,
"skipLibCheck": true,
"jsx": "preserve",
"incremental": false,