|
5 | 5 | "dev": "vite",
|
6 | 6 | "build": "tsc && vite build",
|
7 | 7 | "preview": "vite preview",
|
8 |
| - "test:unit": "vite-jest --no-cache" |
| 8 | + "test:unit": "vite-jest --no-cache", |
| 9 | + "lint:fix": "eslint ./src --ext .jsx,.js,.ts,.tsx --quiet --fix --ignore-path ./.gitignore", |
| 10 | + "lint:format": "prettier --loglevel warn --write \"./**/*.{js,jsx,ts,tsx,css,md,json}\" ", |
| 11 | + "lint": "yarn lint:format && yarn lint:fix ", |
| 12 | + "type-check": "tsc" |
9 | 13 | },
|
10 | 14 | "dependencies": {
|
11 | 15 | "@testing-library/jest-dom": "^5.16.1",
|
|
17 | 21 | "devDependencies": {
|
18 | 22 | "@types/react": "^17.0.33",
|
19 | 23 | "@types/react-dom": "^17.0.10",
|
| 24 | + "@typescript-eslint/eslint-plugin": "^5.10.1", |
| 25 | + "@typescript-eslint/parser": "^5.10.1", |
20 | 26 | "@vitejs/plugin-react": "^1.0.7",
|
| 27 | + "eslint": "^8.7.0", |
| 28 | + "eslint-config-prettier": "^8.3.0", |
| 29 | + "eslint-plugin-import": "^2.25.4", |
| 30 | + "eslint-plugin-jest": "^26.0.0", |
| 31 | + "eslint-plugin-jsx-a11y": "^6.5.1", |
| 32 | + "eslint-plugin-prettier": "^4.0.0", |
| 33 | + "eslint-plugin-react": "^7.28.0", |
| 34 | + "eslint-plugin-simple-import-sort": "^7.0.0", |
| 35 | + "eslint-plugin-testing-library": "^5.0.4", |
21 | 36 | "identity-obj-proxy": "^3.0.0",
|
22 | 37 | "jest": "^27.4.7",
|
23 | 38 | "jest-environment-jsdom": "^27.4.6",
|
| 39 | + "pre-commit": "^1.2.2", |
| 40 | + "prettier": "^2.5.1", |
24 | 41 | "typescript": "^4.4.4",
|
25 | 42 | "vite": "^2.7.2",
|
26 | 43 | "vite-jest": "^0.1.4"
|
27 |
| - } |
| 44 | + }, |
| 45 | + "pre-commit": "lint" |
28 | 46 | }
|
0 commit comments