Add lint:fix script

This commit is contained in:
Brian Bowman
2022-07-19 18:33:16 -05:00
parent f260379fa2
commit 7f9ba66e38
2 changed files with 7 additions and 1 deletions

View File

@@ -49,8 +49,13 @@ For a debug build,
### Code Formatting and Linting ### Code Formatting and Linting
Formatting:
- `yarn format` - `yarn format`
- `yarn lint`
Check Lints, fix (some) lints:
- `yarn lint`, `yarn lint:fix`
### Generating Update Artifacts ### Generating Update Artifacts

View File

@@ -30,6 +30,7 @@
"start:dev": "tauri dev", "start:dev": "tauri dev",
"format": "cargo fmt --manifest-path ./src-tauri/Cargo.toml --all && yarn prettier --write --cache --loglevel warn .", "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": "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" "prepare": "husky install"
}, },
"eslintConfig": { "eslintConfig": {