{ "name": "react-vite-template", "author": { "name": "Yiyang Sun", "email": "syy11cn@outlook.com" }, "version": "0.0.1", "license": "MIT", "scripts": { "dev": "vite", "build": "vite build", "serve": "vite preview", "precommit": "lint-staged", "lint:less": "stylelint --fix \"src/**/*.less\" --syntax less", "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx", "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx ./src", "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx", "lint:prettier": "prettier --check \"src/**/*\" --end-of-line auto", "prettier": "prettier -c --write \"src/**/*\"" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "**/*.less": "stylelint --syntax less", "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js", "**/*.{js,jsx,tsx,ts,less,md,json}": [ "prettier --write" ] }, "dependencies": { "react": "^17.0.0", "react-dom": "^17.0.0" }, "devDependencies": { "@apollo/client": "^3.4.16", "@syy11cn/config-router": "^1.0.5", "@types/react": "^17.0.33", "@types/react-dom": "^17.0.10", "@types/react-router-dom": "^5.3.2", "@typescript-eslint/eslint-plugin": "^5.2.0", "@typescript-eslint/parser": "^5.2.0", "@vitejs/plugin-react": "^1.0.0", "antd": "^4.16.13", "axios": "^0.24.0", "eslint": "^7.10.0", "eslint-plugin-react": "^7.26.1", "eslint-plugin-react-hooks": "^4.2.0", "esprima": "^4.0.1", "graphql": "^15.0.0", "husky": "^7.0.4", "lint-staged": "^11.2.6", "prettier": "^2.4.1", "react-router-dom": "^5.3.0", "stylelint": "^14.0.1", "stylelint-config-standard": "^23.0.0", "typescript": "^4.4.4", "vite": "^2.6.4" } }