chore: update dev tooling and dependencies
- Add typescript lint rules (consistent-type-imports, no-import-type-side-effects) - Set idle session timeout in postgres dev container - Add react-hook-text-overflow dependency with patch
This commit is contained in:
+3
-1
@@ -3,6 +3,8 @@
|
||||
"plugins": ["nextjs"],
|
||||
"rules": {
|
||||
"nextjs/no-html-link-for-pages": "error",
|
||||
"nextjs/next-script-for-ga": "error"
|
||||
"nextjs/next-script-for-ga": "error",
|
||||
"typescript/no-import-type-side-effects": "error",
|
||||
"typescript/consistent-type-imports": "error"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,6 +66,7 @@
|
||||
"react-day-picker": "^9.12.0",
|
||||
"react-dom": "19.2.6",
|
||||
"react-hook-form": "^7.68.0",
|
||||
"react-hook-text-overflow": "^1.0.1",
|
||||
"react-resizable-panels": "^3.0.6",
|
||||
"react-use": "^17.6.0",
|
||||
"recharts": "2.15.4",
|
||||
@@ -105,6 +106,9 @@
|
||||
"@prisma/client",
|
||||
"prisma",
|
||||
],
|
||||
"patchedDependencies": {
|
||||
"[email protected]": "patches/[email protected]",
|
||||
},
|
||||
"overrides": {
|
||||
"@types/react": "19.2.14",
|
||||
"@types/react-dom": "19.2.3",
|
||||
@@ -1151,6 +1155,8 @@
|
||||
|
||||
"react-hook-form": ["[email protected]", "", { "peerDependencies": { "react": "^16.8.0 || ^17 || ^18 || ^19" } }, "sha512-9SUJKCGKo8HUSsCO+y0CtqkqI5nNuaDqTxyqPsZPqIwudpj4rCrAz/jZV+jn57bx5gtZKOh3neQu94DXMc+w5w=="],
|
||||
|
||||
"react-hook-text-overflow": ["[email protected]", "", { "peerDependencies": { "react": "^16.8.0 || ^17 || ^18" } }, "sha512-a+8Z4b1+XFrub2GcJfDj8MJEsAsx/EhpxA8KN096iuMdkO7hTmql4M6Ax5r7G3K8sLztR6TaqGF37K25IQaDQw=="],
|
||||
|
||||
"react-is": ["[email protected]", "", {}, "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg=="],
|
||||
|
||||
"react-remove-scroll": ["[email protected]", "", { "dependencies": { "react-remove-scroll-bar": "^2.3.7", "react-style-singleton": "^2.2.3", "tslib": "^2.1.0", "use-callback-ref": "^1.3.3", "use-sidecar": "^1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA=="],
|
||||
|
||||
@@ -56,6 +56,7 @@ services:
|
||||
restart: on-failure
|
||||
ports:
|
||||
- 5432:5432
|
||||
command: -p 5432 -c idle_session_timeout=60000
|
||||
redis:
|
||||
image: redis:latest
|
||||
ports:
|
||||
|
||||
+5
-1
@@ -80,6 +80,7 @@
|
||||
"react-day-picker": "^9.12.0",
|
||||
"react-dom": "19.2.6",
|
||||
"react-hook-form": "^7.68.0",
|
||||
"react-hook-text-overflow": "^1.0.1",
|
||||
"react-resizable-panels": "^3.0.6",
|
||||
"react-use": "^17.6.0",
|
||||
"recharts": "2.15.4",
|
||||
@@ -121,5 +122,8 @@
|
||||
"esbuild",
|
||||
"prisma",
|
||||
"sharp"
|
||||
]
|
||||
],
|
||||
"patchedDependencies": {
|
||||
"[email protected]": "patches/[email protected]"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
diff --git a/node_modules/react-hook-text-overflow/dist/index.d.ts b/dist/index.d.ts
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..52b8c4a4c1f0ec307e974698fcc80b66497bdad6
|
||||
--- /dev/null
|
||||
+++ b/dist/index.d.ts
|
||||
@@ -0,0 +1,13 @@
|
||||
+import React from "react";
|
||||
+
|
||||
+export function useEllipsisVisibleWrapper(): [
|
||||
+ wrapperNodeWidth: number | null,
|
||||
+ wrapperRef: (node: HTMLElement | null) => void,
|
||||
+];
|
||||
+
|
||||
+export const EllipsisVisibleWrapperWidthContext: React.Context<number | null>;
|
||||
+
|
||||
+export function useEllipsisVisible(): [
|
||||
+ isEllipsisVisible: boolean,
|
||||
+ ellipsisVisibleRef: (node: HTMLElement | null) => void,
|
||||
+];
|
||||
diff --git a/package.json b/package.json
|
||||
index 75355d4f422ca8b9100b0d358a4a520be45df8d6..abe4653d537f23d2438b51b14bd69273c257c0b6 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -12,6 +12,7 @@
|
||||
"license": "MIT",
|
||||
"author": "Bence A. Toth <[email protected]>",
|
||||
"main": "dist/index.js",
|
||||
+ "types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "rm -rf dist && babel src --out-dir dist",
|
||||
"build:watch": "babel src --out-dir dist --watch"
|
||||
Reference in New Issue
Block a user