From 057c3056f448d836557914a7b98641b58ff17f66 Mon Sep 17 00:00:00 2001 From: Matiss Janis Aboltins Date: Sun, 22 Feb 2026 21:23:47 +0000 Subject: [PATCH] [AI] Separate lint and format into distinct commands Co-authored-by: Cursor --- package.json | 10 ++++++---- upcoming-release-notes/7055.md | 6 ++++++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 upcoming-release-notes/7055.md diff --git a/package.json b/package.json index 08ba079882..5604e59d09 100644 --- a/package.json +++ b/package.json @@ -54,8 +54,10 @@ "vrt:docker": "./bin/run-vrt", "rebuild-electron": "./node_modules/.bin/electron-rebuild -m ./packages/loot-core", "rebuild-node": "yarn workspace loot-core rebuild", - "lint": "oxfmt --check . && oxlint --type-aware", - "lint:fix": "oxfmt . && oxlint --fix --type-aware", + "lint": "oxlint --type-aware --quiet", + "lint:fix": "yarn lint --fix", + "format": "oxfmt --check .", + "format:fix": "oxfmt .", "install:server": "yarn workspaces focus @actual-app/sync-server --production", "typecheck": "tsc -p tsconfig.root.json --noEmit && lage typecheck", "jq": "./node_modules/node-jq/bin/jq", @@ -92,10 +94,10 @@ }, "lint-staged": { "*.{js,mjs,jsx,ts,tsx,md,json,yml,yaml}": [ - "oxfmt --no-error-on-unmatched-pattern" + "yarn format:fix --no-error-on-unmatched-pattern" ], "*.{js,mjs,jsx,ts,tsx}": [ - "oxlint --fix --type-aware" + "yarn lint:fix" ] }, "browserslist": [ diff --git a/upcoming-release-notes/7055.md b/upcoming-release-notes/7055.md new file mode 100644 index 0000000000..7ad0978457 --- /dev/null +++ b/upcoming-release-notes/7055.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [MatissJanis] +--- + +Separate lint & format into two separate commands