|
1 | 1 | { |
2 | 2 | "name": "react-admin-tp", |
| 3 | + "type": "module", |
3 | 4 | "version": "1.0.1", |
4 | 5 | "description": "react-ts 后台管理系统项目模版内置菜单路由、状态管理多环境打包等工具开箱即用", |
5 | | - "main": "index.js", |
6 | | - "type": "module", |
| 6 | + "author": "wanpan11", |
| 7 | + "license": "ISC", |
| 8 | + "homepage": "https://wanpan11.github.io/react-admin-tp/", |
7 | 9 | "keywords": [ |
8 | 10 | "react", |
9 | 11 | "admin", |
10 | 12 | "typescript" |
11 | 13 | ], |
12 | | - "author": "wanpan11", |
13 | | - "license": "ISC", |
14 | | - "homepage": "https://wanpan11.github.io/react-admin-tp/", |
| 14 | + "main": "index.js", |
15 | 15 | "scripts": { |
16 | 16 | "start": "cross-env NODE_ENV=development webpack serve -c ./scripts/webpack.config.cjs --mode development", |
17 | 17 | "build": "cross-env NODE_ENV=production webpack -c ./scripts/webpack.config.cjs --mode production", |
18 | 18 | "build:homepage": "cross-env NODE_ENV=homepage webpack -c ./scripts/webpack.config.cjs --mode production", |
19 | 19 | "dev:build": "cross-env NODE_ENV=development webpack -c ./scripts/webpack.config.cjs --mode development", |
20 | | - "lint": "eslint --fix --ext js,jsx,ts,tsx src/ && tsc --noEmit", |
| 20 | + "lint": "eslint --fix && tsc --noEmit", |
21 | 21 | "prepare": "husky install" |
22 | 22 | }, |
| 23 | + "dependencies": { |
| 24 | + "@ant-design/icons": "^5.3.4", |
| 25 | + "@babel/runtime": "^7.24.0", |
| 26 | + "@unocss/reset": "^0.53.6", |
| 27 | + "antd": "^5.15.3", |
| 28 | + "axios": "^1.6.8", |
| 29 | + "classnames": "^2.5.1", |
| 30 | + "core-js": "^3.36.0", |
| 31 | + "nanoid": "^4.0.2", |
| 32 | + "react": "^18.2.0", |
| 33 | + "react-dom": "^18.2.0", |
| 34 | + "react-router-dom": "^6.22.3", |
| 35 | + "swr": "^2.3.3", |
| 36 | + "zustand": "^5.0.5" |
| 37 | + }, |
23 | 38 | "devDependencies": { |
| 39 | + "@antfu/eslint-config": "^4.15.0", |
24 | 40 | "@babel/core": "^7.24.0", |
25 | 41 | "@babel/plugin-transform-runtime": "^7.24.0", |
26 | 42 | "@babel/preset-env": "^7.24.0", |
27 | 43 | "@babel/preset-react": "^7.23.3", |
28 | 44 | "@babel/preset-typescript": "^7.23.3", |
29 | | - "@ianvs/prettier-plugin-sort-imports": "^4.3.1", |
| 45 | + "@eslint-react/eslint-plugin": "^1.52.2", |
30 | 46 | "@types/mockjs": "^1.0.10", |
31 | 47 | "@types/node": "^18.19.24", |
32 | 48 | "@types/react": "^18.2.66", |
33 | 49 | "@types/react-dom": "^18.2.22", |
34 | | - "@typescript-eslint/eslint-plugin": "^8.28.0", |
35 | | - "@typescript-eslint/parser": "^8.28.0", |
36 | 50 | "autoprefixer": "^10.4.18", |
37 | 51 | "babel-loader": "^8.3.0", |
38 | 52 | "cross-env": "^7.0.3", |
39 | 53 | "css-loader": "^6.10.0", |
40 | 54 | "cssnano": "^6.1.0", |
41 | 55 | "dotenv": "^16.4.5", |
42 | | - "eslint": "^8.57.0", |
43 | | - "eslint-plugin-prettier": "^4.2.1", |
44 | | - "eslint-plugin-react": "^7.34.1", |
45 | | - "eslint-plugin-react-hooks": "^4.6.0", |
| 56 | + "eslint": "^9.29.0", |
| 57 | + "eslint-plugin-format": "^1.0.1", |
| 58 | + "eslint-plugin-react-hooks": "^5.2.0", |
| 59 | + "eslint-plugin-react-refresh": "^0.4.20", |
| 60 | + "eslint-plugin-tailwindcss": "^3.18.0", |
46 | 61 | "html-webpack-plugin": "^5.6.0", |
47 | 62 | "husky": "^8.0.3", |
48 | 63 | "less": "^4.2.0", |
|
52 | 67 | "mockjs": "^1.1.0", |
53 | 68 | "postcss": "^8.4.36", |
54 | 69 | "postcss-loader": "^7.3.4", |
55 | | - "prettier": "2.5.1", |
56 | | - "prettier-plugin-tailwindcss": "^0.3.0", |
57 | 70 | "style-loader": "^3.3.4", |
58 | 71 | "tailwindcss": "^3.4.1", |
59 | 72 | "typescript": "^5.8.2", |
|
62 | 75 | "webpack-cli": "^4.10.0", |
63 | 76 | "webpack-dev-server": "^4.15.1" |
64 | 77 | }, |
65 | | - "dependencies": { |
66 | | - "@ant-design/icons": "^5.3.4", |
67 | | - "@babel/runtime": "^7.24.0", |
68 | | - "@unocss/reset": "^0.53.6", |
69 | | - "antd": "^5.15.3", |
70 | | - "axios": "^1.6.8", |
71 | | - "classnames": "^2.5.1", |
72 | | - "core-js": "^3.36.0", |
73 | | - "nanoid": "^4.0.2", |
74 | | - "react": "^18.2.0", |
75 | | - "react-dom": "^18.2.0", |
76 | | - "react-router-dom": "^6.22.3", |
77 | | - "swr": "^2.3.3", |
78 | | - "zustand": "^5.0.5" |
79 | | - }, |
80 | 78 | "lint-staged": { |
81 | 79 | "*.{js,jsx,ts,tsx}": [ |
82 | 80 | "eslint --fix", |
83 | 81 | "bash -c tsc --noEmit" |
84 | | - ], |
85 | | - "*.md": [ |
86 | | - "prettier --write" |
87 | 82 | ] |
88 | 83 | } |
89 | 84 | } |
0 commit comments