diff --git a/package.json b/package.json index 632dafa..8c185b6 100644 --- a/package.json +++ b/package.json @@ -8,16 +8,17 @@ "start": "next start", "lint": "next lint", "prepare": "husky install", - "preinstall": "husky install" + "preinstall": "husky install", + "mock": "npx tsx watch ./src/mocks/http.ts", + "format": "prettier --check --ignore-path .gitignore .", + "format:fix": "prettier --write --ignore-path .gitignore ." }, "dependencies": { "@tanstack/react-query": "^5.34.1", - "@tanstack/react-query-devtools": "^5.34.1", "axios": "^1.6.8", "dayjs": "^1.11.11", "framer-motion": "^11.1.7", "jotai": "^2.8.0", - "msw": "^2.2.14", "next": "14.2.3", "react": "^18", "react-dom": "^18", @@ -25,17 +26,33 @@ "styled-components": "^6.1.9" }, "devDependencies": { + "@mswjs/http-middleware": "^0.10.1", "@swc/plugin-styled-components": "^2.0.2", + "@tanstack/react-query-devtools": "^5.34.1", + "@types/cors": "^2.8.17", + "@types/express": "^4.17.21", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", + "@typescript-eslint/eslint-plugin": "^7.8.0", + "@typescript-eslint/parser": "^7.8.0", + "cors": "^2.8.5", "eslint": "^8", "eslint-config-next": "14.2.3", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", "husky": "^9.0.11", "lint-staged": "^15.2.2", + "msw": "^2.2.14", + "prettier": "^3.2.5", "typescript": "^5" }, "lint-staged": { "*.js": "eslint --cache --fix" + }, + "msw": { + "workerDirectory": [ + "public" + ] } -} +} \ No newline at end of file