功能:添加eslint,prettier
正在显示
.eslintignore
0 → 100644
.prettierignore
0 → 100644
.prettierrc
0 → 100644
| ... | ... | @@ -6,9 +6,14 @@ |
| "dev": "next dev", | ||
| "build": "next build", | ||
| "start": "next start", | ||
| "lint": "next lint", | ||
| "lint:next": "next lint", | ||
| "predev": "ts-node --project ./tsconfig.node.json ./scripts/genAntdCss.tsx", | ||
| "prebuild": "cross-env NODE_ENV=production ts-node --project ./tsconfig.node.json ./scripts/genAntdCss.tsx" | ||
| "prebuild": "cross-env NODE_ENV=production ts-node --project ./tsconfig.node.json ./scripts/genAntdCss.tsx", | ||
| "lint": "npx eslint src", | ||
| "lint:fix": "npm run lint -- --fix", | ||
| "prettier": "npx prettier src --check", | ||
| "prettier:fix": "npm run prettier -- --write", | ||
| "format": "npm run prettier:fix && npm run lint:fix" | ||
| }, | ||
| "devDependencies": { | ||
| "@ant-design/cssinjs": "^1.3.0", | ||
| ... | ... | @@ -18,9 +23,11 @@ |
| "@types/react-dom": "^18.0.10", | ||
| "antd": "^5.1.0", | ||
| "cross-env": "^7.0.3", | ||
| "eslint": "^8.30.0", | ||
| "eslint": "^8.42.0", | ||
| "eslint-config-next": "^13.1.1", | ||
| "eslint-plugin-prettier": "^4.2.1", | ||
| "next": "^13.1.1", | ||
| "prettier": "^2.8.8", | ||
| "react": "^18.2.0", | ||
| "react-dom": "^18.2.0", | ||
| "sass": "^1.62.1", | ||
| ... | ... | @@ -36,6 +43,7 @@ |
| "babel-plugin-styled-components": "^2.1.1", | ||
| "babel-plugin-styled-components-px2rem": "^1.5.5", | ||
| "cookie": "^0.5.0", | ||
| "dayjs": "^1.11.8", | ||
| "moment": "^2.29.4", | ||
| "next-connect": "^1.0.0", | ||
| "passport": "^0.6.0", | ||
| ... | ... |
请
注册
或者
登录
后发表评论