|
22 | 22 | "@types/jest": "27.4.1",
|
23 | 23 | "@types/node": "17.0.23",
|
24 | 24 | "@types/pretty": "^2.0.1",
|
| 25 | + "@typescript-eslint/eslint-plugin": "^5.18.0", |
| 26 | + "@typescript-eslint/parser": "^5.18.0", |
25 | 27 | "@vue/babel-plugin-jsx": "^1.1.1",
|
26 | 28 | "@vue/compat": "3.2.31",
|
27 | 29 | "@vue/compiler-dom": "3.2.31",
|
28 | 30 | "@vue/compiler-sfc": "3.2.31",
|
29 | 31 | "@vue/vue3-jest": "27.0.0-alpha.4",
|
30 | 32 | "babel-jest": "27.5.1",
|
31 | 33 | "babel-preset-jest": "27.5.1",
|
| 34 | + "eslint": "^8.12.0", |
| 35 | + "eslint-config-prettier": "^8.5.0", |
| 36 | + "eslint-plugin-prettier": "^4.0.0", |
32 | 37 | "husky": "^7.0.4",
|
33 | 38 | "jest": "27.5.1",
|
34 | 39 | "jsdom": "^19.0.0",
|
|
62 | 67 | "test:build": "yarn jest --runInBand tests/ -use-build",
|
63 | 68 | "tsd": "tsc -p test-dts/tsconfig.tsd.json",
|
64 | 69 | "build": "yarn rollup -c rollup.config.js",
|
65 |
| - "lint": "prettier -c \"(src|tests)/**/*.(ts?(x)|vue)\"", |
66 |
| - "lint:fix": "yarn lint --write", |
| 70 | + "lint": "eslint --ext .ts src/ tests/", |
| 71 | + "lint:fix": "yarn lint --fix", |
67 | 72 | "docs:dev": "vitepress dev docs",
|
68 | 73 | "docs:build": "vitepress build docs",
|
69 | 74 | "vue-tsc": "vue-tsc --noEmit -p tsconfig.volar.json",
|
|
76 | 81 | },
|
77 | 82 | "lint-staged": {
|
78 | 83 | "*.ts": [
|
79 |
| - "prettier --parser=typescript --write" |
| 84 | + "eslint --fix" |
80 | 85 | ],
|
81 | 86 | "*.md": [
|
82 | 87 | "prettier --write"
|
|
97 | 102 | "url": "git+https://github.com/vuejs/test-utils.git"
|
98 | 103 | },
|
99 | 104 | "homepage": "https://github.com/vuejs/test-utils"
|
100 |
| - |
101 | 105 | }
|
0 commit comments