diff --git a/.eslintrc.js b/.eslintrc.js index 3365bc62..9381f335 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -92,7 +92,7 @@ module.exports = { { files: ["**/*.md"], plugins: ["markdown"], - extends: ["plugin:markdown/recommended", "prettier"], + extends: ["plugin:markdown/recommended-legacy", "prettier"], }, // Jest/Vitest diff --git a/cypress/support/delete-user.ts b/cypress/support/delete-user.ts index fd1fb025..13500190 100644 --- a/cypress/support/delete-user.ts +++ b/cypress/support/delete-user.ts @@ -3,7 +3,7 @@ // npx ts-node -r tsconfig-paths/register ./cypress/support/delete-user.ts username@example.com, // and that user will get deleted -import { PrismaClientKnownRequestError } from "@prisma/client/runtime"; +import { PrismaClientKnownRequestError } from "@prisma/client/runtime/library"; import { installGlobals } from "@remix-run/node"; import { prisma } from "~/db.server"; diff --git a/package.json b/package.json index 4a911375..5ccca2ec 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "/public/build" ], "dependencies": { - "@prisma/client": "^4.16.2", + "@prisma/client": "^5.14.0", "@remix-run/css-bundle": "*", "@remix-run/node": "*", "@remix-run/react": "*", @@ -40,50 +40,51 @@ "devDependencies": { "@faker-js/faker": "^8.4.1", "@remix-run/dev": "*", - "@testing-library/cypress": "^10.0.1", - "@testing-library/jest-dom": "^6.4.2", + "@testing-library/cypress": "^10.0.2", + "@testing-library/jest-dom": "^6.4.5", "@types/bcryptjs": "^2.4.6", "@types/cookie": "^0.6.0", "@types/eslint": "^8.56.10", - "@types/node": "^18.19.31", - "@types/react": "^18.3.1", + "@types/node": "^18.19.33", + "@types/prettier": "^3.0.0", + "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", - "@typescript-eslint/eslint-plugin": "^7.8.0", - "@typescript-eslint/parser": "^7.8.0", - "@vitejs/plugin-react": "^4.2.1", - "@vitest/coverage-v8": "^1.5.3", + "@typescript-eslint/eslint-plugin": "^7.11.0", + "@typescript-eslint/parser": "^7.11.0", + "@vitejs/plugin-react": "^4.3.0", + "@vitest/coverage-v8": "^1.6.0", "autoprefixer": "^10.4.19", "binode": "^1.0.5", "cookie": "^0.6.0", "cross-env": "^7.0.3", - "cypress": "^13.8.1", + "cypress": "^13.10.0", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-cypress": "^2.15.2", + "eslint-plugin-cypress": "^3.3.0", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jest": "^27.9.0", + "eslint-plugin-jest": "^28.5.0", "eslint-plugin-jest-dom": "^5.4.0", "eslint-plugin-jsx-a11y": "^6.8.0", - "eslint-plugin-markdown": "^3.0.1", - "eslint-plugin-react": "^7.34.1", + "eslint-plugin-markdown": "^5.0.0", + "eslint-plugin-react": "^7.34.2", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-testing-library": "^6.2.2", - "happy-dom": "^14.7.1", - "msw": "^2.2.14", + "happy-dom": "^14.12.0", + "msw": "^2.3.1", "npm-run-all": "^4.1.5", "postcss": "^8.4.38", - "prettier": "3.2.5", - "prettier-plugin-tailwindcss": "^0.5.14", - "prisma": "^4.16.2", + "prettier": "3.3.0", + "prettier-plugin-tailwindcss": "^0.6.1", + "prisma": "^5.14.0", "start-server-and-test": "^2.0.3", "tailwindcss": "^3.4.3", "ts-node": "^10.9.2", "tsconfig-paths": "^4.2.0", "typescript": "^5.4.5", - "vite": "^5.2.11", + "vite": "^5.2.12", "vite-tsconfig-paths": "^4.3.2", - "vitest": "^1.5.3" + "vitest": "^1.6.0" }, "engines": { "node": ">=18.0.0" diff --git a/prettier.config.js b/prettier.config.js new file mode 100644 index 00000000..fb6fba22 --- /dev/null +++ b/prettier.config.js @@ -0,0 +1,4 @@ +/** @type {import("prettier").Config} */ +export default { + plugins: ["prettier-plugin-tailwindcss"], +};