mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2026-11-21 08:03:01 +00:00
Replace legacy eslintConfig in package.json with eslint.config.js
using the new flat config format. Update packages:
- eslint 8 → 9
- @typescript-eslint/{parser,eslint-plugin} 6 → typescript-eslint 8
- eslint-plugin-react-hooks 4 → 5
- eslint-plugin-vitest → @vitest/eslint-plugin
- eslint-plugin-react-refresh 0.4 → 0.5
- add @eslint/js
Auto-fix prefer-const violations and remove a stale eslint-disable
directive. Disable no-explicit-any, no-empty-object-type, and
no-this-alias to match previous leniency.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
66 lines
2.0 KiB
JSON
66 lines
2.0 KiB
JSON
{
|
|
"name": "ui",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@emotion/react": "^11.14.0",
|
|
"@emotion/styled": "^11.14.1",
|
|
"@fontsource/roboto": "^5.2.9",
|
|
"@mui/icons-material": "^5.15.15",
|
|
"@mui/lab": "5.0.0-alpha.170",
|
|
"@mui/material": "^5.15.15",
|
|
"@mui/x-date-pickers": "^6.19.8",
|
|
"@react-hook/resize-observer": "^1.2.6",
|
|
"date-fns": "^2.30.0",
|
|
"date-fns-tz": "^2.0.1",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-hook-form": "^7.71.1",
|
|
"react-hook-form-mui": "^6.8.0",
|
|
"react-router-dom": "^6.22.3"
|
|
},
|
|
"scripts": {
|
|
"check-format": "prettier --check --ignore-path .prettierignore .",
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"format": "prettier --write --ignore-path .prettierignore .",
|
|
"lint": "eslint --report-unused-disable-directives --max-warnings 0",
|
|
"preview": "vite preview",
|
|
"test": "vitest"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.24.4",
|
|
"@babel/preset-env": "^7.24.4",
|
|
"@babel/preset-react": "^7.24.1",
|
|
"@babel/preset-typescript": "^7.24.1",
|
|
"@eslint/js": "^9.39.2",
|
|
"@swc/core": "^1.4.12",
|
|
"@testing-library/dom": "^8.20.1",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^13.4.0",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/node": "^22.0.0",
|
|
"@types/react": "^18.2.74",
|
|
"@types/react-dom": "^18.2.24",
|
|
"@vitejs/plugin-legacy": "^6.0.0",
|
|
"@vitejs/plugin-react-swc": "^4.0.0",
|
|
"@vitest/eslint-plugin": "^1.6.9",
|
|
"eslint": "^9",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
"eslint-plugin-react-refresh": "^0.5.0",
|
|
"http-proxy-middleware": "^2.0.6",
|
|
"jsdom": "^24.0.0",
|
|
"msw": "^2.12.10",
|
|
"prettier": "^3.8.1",
|
|
"terser": "^5.30.3",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.4.4",
|
|
"typescript-eslint": "^8.56.0",
|
|
"vite": "^6.0.0",
|
|
"vite-plugin-compression": "^0.5.1",
|
|
"vitest": "^4.0.0"
|
|
}
|
|
}
|