feat: eslint config
Showing
.eslintignore
0 → 100644
.eslintrc.js
0 → 100644
| ... | ... | @@ -10,6 +10,7 @@ |
| "build:dev": "rsbuild build --config rsbuild/build/build.dev.ts", | ||
| "build:prod": "rsbuild build --config rsbuild/build/build.prod.ts", | ||
| "deploy:test": "pnpm build:test && sh ./scripts/deploy.test.sh", | ||
| "lint": "eslint src --fix --ext .ts,.tsx", | ||
| "build": "rsbuild build", | ||
| "preview": "rsbuild preview" | ||
| }, | ||
| ... | ... | @@ -28,7 +29,16 @@ |
| "@types/lodash": "^4.14.202", | ||
| "@types/react": "^18", | ||
| "@types/react-dom": "^18", | ||
| "@typescript-eslint/eslint-plugin": "^6.13.1", | ||
| "@typescript-eslint/parser": "^6.13.1", | ||
| "eslint": "^8.54.0", | ||
| "eslint-plugin-react": "^7.33.2", | ||
| "postcss-px-to-viewport": "^1.1.1", | ||
| "typescript": "^5.3.0" | ||
| "typescript": "^5.3.2" | ||
| }, | ||
| "husky": { | ||
| "hooks": { | ||
| "pre-commit": "pnpm lint" | ||
| } | ||
| } | ||
| } |
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment