-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
39 lines (39 loc) · 1.17 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
{
"scripts": {
"prepare": "husky init",
"format": "cargo fmt --all && prettier --write '**/*.{js,jsx,ts,tsx,json,css,scss,md,html,toml,sh}'",
"lint": "cargo clippy --fix --allow-dirty",
"test": "cargo test --",
"dev": "cargo run --",
"trace": "cargo run -- --log --log-level=Trace",
"warn": "cargo run -- --log --log-level=Warn",
"info": "cargo run -- --log --log-level=Info",
"build": "make build",
"release": "make release",
"license": "cargo deny check"
},
"devDependencies": {
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"prettier": "^3.3.2",
"prettier-plugin-rust": "^0.1.9",
"prettier-plugin-sh": "^0.14.0",
"prettier-plugin-toml": "^2.0.1"
},
"lint-staged": {
"*.rs": [
"cargo fmt --all",
"cargo clippy --fix --allow-dirty",
"cargo test --",
"cargo deny check"
],
"*.{js,jsx,ts,tsx,json,css,scss,md,html,toml,sh}": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}