|
12 | 12 | "watch": "tsc -w", |
13 | 13 | "start": "nodemon", |
14 | 14 | "release": "standard-version && git push --follow-tags origin main && yarn publish", |
15 | | - "prepublish": "yarn test && yarn build", |
| 15 | + "prepublish": "yarn lint && yarn test && yarn build", |
16 | 16 | "clean": "rimraf dist", |
17 | 17 | "prepare": "husky install", |
18 | 18 | "lint:js": "eslint --ext \".js,.ts\" --ignore-path .gitignore .", |
|
54 | 54 | "@types/jest": "^27.4.0", |
55 | 55 | "@types/node": "^17.0.7", |
56 | 56 | "@types/qs": "^6.9.7", |
57 | | - "@typescript-eslint/eslint-plugin": "^4.33.0", |
58 | | - "@typescript-eslint/parser": "^4.31.1", |
| 57 | + "@typescript-eslint/eslint-plugin": "^5.9.0", |
| 58 | + "@typescript-eslint/parser": "^5.9.0", |
59 | 59 | "@vue/test-utils": "^1.2.2", |
60 | 60 | "axios": "^0.24.0", |
61 | 61 | "axios-mock-adapter": "^1.20.0", |
62 | | - "eslint": "^7.32.0", |
| 62 | + "eslint": "^8.6.0", |
63 | 63 | "eslint-config-prettier": "^8.3.0", |
64 | 64 | "eslint-plugin-import": "^2.24.2", |
65 | 65 | "eslint-plugin-prettier": "^4.0.0", |
66 | 66 | "eslint-plugin-promise": "^6.0.0", |
67 | 67 | "husky": "^7.0.4", |
68 | 68 | "jest": "^27.4.5", |
| 69 | + "lint-staged": ">=10", |
69 | 70 | "nodemon": "^2.0.12", |
70 | 71 | "nuxt-edge": "^2.16.0-27217455.034b9901", |
71 | 72 | "prettier": "^2.4.1", |
|
83 | 84 | "camelcase-keys": "^7.0.1", |
84 | 85 | "qs": "^6.10.2", |
85 | 86 | "snakecase-keys": "^5.1.2" |
| 87 | + }, |
| 88 | + "lint-staged": { |
| 89 | + "*.{js,ts}": "eslint --cache", |
| 90 | + "*.**": "prettier --check --ignore-unknown" |
86 | 91 | } |
87 | 92 | } |
0 commit comments