|
@@ -1,15 +1,44 @@
|
|
|
{
|
|
|
- "name": "slash-admin",
|
|
|
+ "name": "zsy3-admin",
|
|
|
"private": true,
|
|
|
"version": "0.0.0",
|
|
|
"type": "module",
|
|
|
- "homepage": "https://github.com/d3george/slash-admin",
|
|
|
"scripts": {
|
|
|
"dev": "vite",
|
|
|
"build": "tsc && vite build",
|
|
|
"preview": "vite preview",
|
|
|
- "preinstall": "lefthook install",
|
|
|
- "format": "prettier --write \"./**/*.{html,jsx,tsx,ts,js,json,md}\""
|
|
|
+ "format": "prettier --write \"./**/*.{html,jsx,tsx,ts,js,json,md}\"",
|
|
|
+ "prepare": "husky install",
|
|
|
+ "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
|
+ "lint:lint-staged": "lint-staged",
|
|
|
+ "tsc": "tsc --noEmit --skipLibCheck",
|
|
|
+ "commit": "git-cz"
|
|
|
+ },
|
|
|
+ "config": {
|
|
|
+ "commitizen": {
|
|
|
+ "path": "node_modules/cz-customizable"
|
|
|
+ },
|
|
|
+ "cz-customizable": {
|
|
|
+ "config": ".cz-config.cjs"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "lint-staged": {
|
|
|
+ "*.{js,jsx,ts,tsx}": [
|
|
|
+ "pnpm run lint --fix",
|
|
|
+ "npx prettier --write"
|
|
|
+ ],
|
|
|
+ "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
|
|
|
+ "npx prettier --write--parser json"
|
|
|
+ ],
|
|
|
+ "package.json": [
|
|
|
+ "npx prettier --write"
|
|
|
+ ],
|
|
|
+ "*.{scss,less,styl,html}": [
|
|
|
+ "npx prettier --write"
|
|
|
+ ],
|
|
|
+ "*.md": [
|
|
|
+ "npx prettier --write"
|
|
|
+ ]
|
|
|
},
|
|
|
"dependencies": {
|
|
|
"@ant-design/cssinjs": "^1.17.2",
|
|
@@ -79,8 +108,8 @@
|
|
|
"zustand": "^4.4.3"
|
|
|
},
|
|
|
"devDependencies": {
|
|
|
- "@commitlint/cli": "^17.7.2",
|
|
|
- "@commitlint/config-conventional": "^17.7.0",
|
|
|
+ "@commitlint/cli": "^17.8.1",
|
|
|
+ "@commitlint/config-conventional": "^17.8.1",
|
|
|
"@faker-js/faker": "^8.1.0",
|
|
|
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
|
|
|
"@types/autosuggest-highlight": "^3.2.0",
|
|
@@ -97,12 +126,17 @@
|
|
|
"@typescript-eslint/parser": "^8.23.0",
|
|
|
"autoprefixer": "^10.4.16",
|
|
|
"babel-eslint": "^10.1.0",
|
|
|
+ "commitizen": "^4.3.1",
|
|
|
+ "commitlint-config-cz": "^0.13.3",
|
|
|
+ "cz-conventional-changelog": "^3.3.0",
|
|
|
+ "cz-customizable": "^7.4.0",
|
|
|
"eslint": "^8.57.1",
|
|
|
"eslint-config-prettier": "^10.0.1",
|
|
|
"eslint-plugin-import": "^2.31.0",
|
|
|
"eslint-plugin-prettier": "^5.2.3",
|
|
|
"eslint-plugin-react": "^7.37.4",
|
|
|
- "lefthook": "^1.8.2",
|
|
|
+ "husky": "^9.1.7",
|
|
|
+ "lint-staged": "^15.5.0",
|
|
|
"msw": "^2.4.9",
|
|
|
"postcss": "^8.4.31",
|
|
|
"postcss-import": "^15.1.0",
|