-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
77 lines (77 loc) · 1.84 KB
/
Copy pathpackage.json
File metadata and controls
77 lines (77 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"name": "leetcode",
"version": "1.0.0",
"description": "leetcode 解题代码",
"main": "",
"scripts": {
"dev": "ts-node src/05.longestPalindrome/longestPalindrome.ts",
"test:dev": "jest --coverage --bail src/21.generateParenthesis/index.spec.ts",
"test": "jest --coverage",
"lint": "eslint src --ext .js,.ts --cache --fix",
"commit": "git cz"
},
"repository": {
"type": "git",
"url": "git@gitee.com:liu0716/leetcode.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@types/jest": "^29.4.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"commitizen": "^4.3.0",
"commitlint-config-cz": "^0.13.3",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3",
"jest": "^29.4.1",
"lint-staged": "^12.5.0",
"prettier": "^2.8.3",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"lint-staged": {
"*.spec.{js,ts}": [
"jest --coverage --bail"
],
"*.{js,ts}": [
"prettier --write",
"eslint --fix"
]
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"coverageDirectory": "../coverage",
"collectCoverage": true,
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 100,
"lines": 80,
"statements": 80
}
},
"testEnvironment": "node"
}
}