fix: update dependencies to resolve security vulnerabilities

- Update vite 5→7.3.1 and @vitejs/plugin-react 4→5.1.2 (GHSA-67mh-4wv8-2f99)
- Update react-router-dom 6→7.13.0 (GHSA-2w69-qvjg-hvjx, CVSS 8.0)
- Add husky, lint-staged to devDependencies
- Add project description and AGPL-3.0 license to package.json
This commit is contained in:
c0mrade
2026-01-27 17:38:18 +03:00
parent f0cfdfdd2a
commit a63bb7c457
2 changed files with 1300 additions and 704 deletions

1963
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -2,13 +2,19 @@
"name": "cabinet-frontend", "name": "cabinet-frontend",
"private": true, "private": true,
"version": "1.0.0", "version": "1.0.0",
"description": "Remnawave Bedolaga Web App",
"license": "AGPL-3.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "tsc && vite build", "build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives", "lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --write \"src/**/*.{ts,tsx,css,json}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,css,json}\"",
"type-check": "tsc --noEmit", "type-check": "tsc --noEmit",
"preview": "vite preview" "preview": "vite preview",
"prepare": "husky"
}, },
"dependencies": { "dependencies": {
"@dnd-kit/core": "^6.3.1", "@dnd-kit/core": "^6.3.1",
@@ -23,23 +29,38 @@
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-i18next": "^13.5.0", "react-i18next": "^13.5.0",
"react-router-dom": "^6.20.0", "react-router-dom": "^7.13.0",
"zustand": "^4.4.0" "zustand": "^4.4.0"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.39.2",
"@types/dompurify": "^3.0.5", "@types/dompurify": "^3.0.5",
"@types/react": "^18.2.37", "@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15", "@types/react-dom": "^18.2.15",
"@typescript-eslint/eslint-plugin": "^6.10.0", "@vitejs/plugin-react": "^5.1.2",
"@typescript-eslint/parser": "^6.10.0",
"@vitejs/plugin-react": "^4.2.0",
"autoprefixer": "^10.4.16", "autoprefixer": "^10.4.16",
"eslint": "^8.53.0", "eslint": "^9.39.2",
"eslint-plugin-react-hooks": "^4.6.0", "eslint-config-prettier": "^10.1.8",
"eslint-plugin-react-refresh": "^0.4.4", "eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.26",
"globals": "^17.1.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"postcss": "^8.4.31", "postcss": "^8.4.31",
"prettier": "^3.8.1",
"prettier-plugin-tailwindcss": "^0.7.2",
"tailwindcss": "^3.3.5", "tailwindcss": "^3.3.5",
"typescript": "^5.2.2", "typescript": "^5.2.2",
"vite": "^5.0.0" "typescript-eslint": "^8.54.0",
"vite": "^7.3.1"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
],
"*.{css,json}": [
"prettier --write"
]
} }
} }