mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 15:14:35 +01:00
Add lint:fix script
This commit is contained in:
@@ -49,8 +49,13 @@ For a debug build,
|
||||
|
||||
### Code Formatting and Linting
|
||||
|
||||
Formatting:
|
||||
|
||||
- `yarn format`
|
||||
- `yarn lint`
|
||||
|
||||
Check Lints, fix (some) lints:
|
||||
|
||||
- `yarn lint`, `yarn lint:fix`
|
||||
|
||||
### Generating Update Artifacts
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
"start:dev": "tauri dev",
|
||||
"format": "cargo fmt --manifest-path ./src-tauri/Cargo.toml --all && yarn prettier --write --cache --loglevel warn .",
|
||||
"lint": "cargo clippy --manifest-path ./src-tauri/Cargo.toml --no-default-features && yarn tsc --noEmit && yarn eslint src",
|
||||
"lint:fix": "cargo clippy --manifest-path ./src-tauri/Cargo.toml --no-default-features --fix --allow-dirty && yarn tsc --noEmit && yarn eslint --fix src",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
||||
Reference in New Issue
Block a user