-
Notifications
You must be signed in to change notification settings - Fork 32
/
package.json
55 lines (55 loc) · 1.48 KB
/
package.json
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
{
"name": "javascript-utils",
"version": "0.0.1",
"description": "一些实用的 JavaScript 方法",
"main": "src/index.js",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/toFrankie/javascript-utils.git"
},
"author": "Frankie <1426203851@qq.com>",
"license": "MIT",
"private": false,
"scripts": {
"commit": "git-cz",
"lint": "npm-run-all -s prettier:fix eslint:fix",
"eslint:fix": "eslint --cache --fix . --ext .js",
"prettier:fix": "prettier --cache --write './**/*.{js,css,html,json}'",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"test": "NODE_OPTIONS=--experimental-vm-modules jest ./test"
},
"devDependencies": {
"@babel/core": "^7.18.2",
"@babel/eslint-parser": "^7.18.2",
"commitizen": "^4.2.1",
"conventional-changelog-cli": "^2.1.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.16.0",
"eslint-config-alloy": "^4.5.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^4.3.0",
"jest": "^29.5.0",
"lint-staged": "^10.3.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"prettier --write",
"eslint --fix --ext .js"
],
"*.{json,css,html}": "prettier --write"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}