From 7f9ba66e38ee5d4f5437b3dd673bad06be38a6f2 Mon Sep 17 00:00:00 2001 From: Brian Bowman Date: Tue, 19 Jul 2022 18:33:16 -0500 Subject: [PATCH] Add `lint:fix` script --- README.md | 7 ++++++- package.json | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2e3b963..b77a876 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 8e1d174..b7f35e0 100644 --- a/package.json +++ b/package.json @@ -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": {