From 2c0a7d0a37b273e9a7566f3f836e9f7cd60917af Mon Sep 17 00:00:00 2001 From: Piotr Szlachciak Date: Mon, 15 Jul 2024 11:24:39 +0200 Subject: [PATCH] Update dependencies (#31) --- .eslintrc.json | 80 -- packages/frontend/.eslintrc.js | 3 - packages/frontend/.mocharc.json | 7 - packages/frontend/.prettierignore | 3 - packages/frontend/.prettierrc | 7 - packages/frontend/package.json | 12 +- packages/frontend/src/App.tsx | 4 +- packages/frontend/src/view/NodeView.tsx | 8 +- packages/frontend/src/view/ScalableView.tsx | 4 +- packages/frontend/yarn.lock | 801 -------------------- yarn.lock | 62 +- 11 files changed, 49 insertions(+), 942 deletions(-) delete mode 100644 .eslintrc.json delete mode 100644 packages/frontend/.eslintrc.js delete mode 100644 packages/frontend/.mocharc.json delete mode 100644 packages/frontend/.prettierignore delete mode 100644 packages/frontend/.prettierrc delete mode 100644 packages/frontend/yarn.lock diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 6875d41..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "env": { - "es6": true, - "mocha": true, - "node": true - }, - "extends": [ - "eslint:recommended", - "plugin:import/recommended", - "plugin:import/typescript", - "plugin:@typescript-eslint/recommended", - "plugin:@typescript-eslint/recommended-requiring-type-checking", - "plugin:@typescript-eslint/strict" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "project": "./tsconfig.json", - "sourceType": "module" - }, - "plugins": ["simple-import-sort", "no-only-tests", "unused-imports", "react"], - "rules": { - "@typescript-eslint/prefer-readonly": ["error"], - "@typescript-eslint/ban-tslint-comment": "off", - "@typescript-eslint/explicit-module-boundary-types": "off", - "@typescript-eslint/no-extra-semi": "off", - "@typescript-eslint/no-empty-function": "off", - "@typescript-eslint/no-unused-vars": [ - "warn", - { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" } - ], - "import/no-cycle": "error", - "import/no-default-export": "error", - "import/no-extraneous-dependencies": [ - "error", - { "devDependencies": false } - ], - "import/no-unresolved": ["error", { "ignore": ["^knex/types/tables$"] }], - "import/no-internal-modules": [ - "error", - { - "forbid": ["@protocol-beat/*/**"] - } - ], - "no-constant-condition": "off", - "no-only-tests/no-only-tests": "error", - "no-restricted-imports": [ - "error", - { "paths": [".", "..", "../..", "../../.."] } - ], - "simple-import-sort/imports": "error", - "simple-import-sort/exports": "error", - "unused-imports/no-unused-imports": "error", - "eqeqeq": "error", - "react/self-closing-comp": "error" - }, - "overrides": [ - { - "files": ["**/test/**/*.ts", "*.test.ts"], - "rules": { - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-non-null-assertion": "off", - "@typescript-eslint/no-unsafe-assignment": "off", - "@typescript-eslint/no-unsafe-call": "off", - "@typescript-eslint/no-unsafe-member-access": "off", - "@typescript-eslint/no-unsafe-return": "off", - "@typescript-eslint/require-await": "off", - "@typescript-eslint/unbound-method": "off", - "import/no-extraneous-dependencies": "off", - "no-unused-expressions": "off" - } - }, - { - "files": ["src/**/*.stories.{ts,tsx}"], - "rules": { - "import/no-extraneous-dependencies": "off", - "import/no-default-export": "off" - } - } - ] -} diff --git a/packages/frontend/.eslintrc.js b/packages/frontend/.eslintrc.js deleted file mode 100644 index ac96533..0000000 --- a/packages/frontend/.eslintrc.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - extends: '../../.eslintrc.json', -} diff --git a/packages/frontend/.mocharc.json b/packages/frontend/.mocharc.json deleted file mode 100644 index da2a4fe..0000000 --- a/packages/frontend/.mocharc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "spec": "{src,test}/**/*.test.ts", - "require": "esbuild-register", - "watchExtensions": "ts", - "extension": "ts", - "reporterOption": "maxDiffSize=0" -} diff --git a/packages/frontend/.prettierignore b/packages/frontend/.prettierignore deleted file mode 100644 index d0e3c73..0000000 --- a/packages/frontend/.prettierignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules -cache -build diff --git a/packages/frontend/.prettierrc b/packages/frontend/.prettierrc deleted file mode 100644 index 468f86e..0000000 --- a/packages/frontend/.prettierrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "semi": false, - "singleQuote": true, - "printWidth": 80, - "bracketSpacing": true, - "trailingComma": "all" -} diff --git a/packages/frontend/package.json b/packages/frontend/package.json index f8f1a95..bafc006 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -17,13 +17,13 @@ }, "dependencies": { "@total-typescript/ts-reset": "^0.3.7", - "@types/react": "^18.0.26", - "@types/react-dom": "^18.0.9", - "classnames": "^2.3.2", + "@types/react": "^18.3.2", + "@types/react-dom": "^18.3.0", + "clsx": "^2.1.1", "d3-force": "^3.0.0", - "react": "^18.2.0", - "react-dom": "^18.2.0", - "zod": "^3.20.2", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "zod": "^3.22.2", "zustand": "^4.3.2" }, "devDependencies": { diff --git a/packages/frontend/src/App.tsx b/packages/frontend/src/App.tsx index 784ac4f..0173a39 100644 --- a/packages/frontend/src/App.tsx +++ b/packages/frontend/src/App.tsx @@ -1,6 +1,6 @@ import '@total-typescript/ts-reset' -import cx from 'classnames' +import clsx from 'clsx' import { useState } from 'react' import type { SimpleNode } from './api/SimpleNode' @@ -119,7 +119,7 @@ export function App() { }} >
0 && 'border-black border-b-2', )} @@ -89,7 +89,7 @@ export function NodeView(props: NodeViewProps) {
{connection && (
{/* infinite grid */}