diff --git a/.github/workflows/ci_allowance.yml b/.github/workflows/ci_allowance.yml index 688e82bb..4f2a795c 100644 --- a/.github/workflows/ci_allowance.yml +++ b/.github/workflows/ci_allowance.yml @@ -39,5 +39,5 @@ jobs: - run: | pnpm install pnpm run --filter "@safe-global/safe-allowance-module" lint - pnpm run --filter "@safe-global/safe-allowance-module" fmt + pnpm run --filter "@safe-global/safe-allowance-module" fmt:check pnpm run --filter "@safe-global/safe-allowance-module" build diff --git a/modules/allowances/package.json b/modules/allowances/package.json index 3822f77d..1f68711f 100644 --- a/modules/allowances/package.json +++ b/modules/allowances/package.json @@ -18,9 +18,12 @@ "lint": "pnpm run lint:sol && npm run lint:ts", "lint:sol": "solhint 'contracts/**/*.sol'", "lint:ts": "eslint 'tasks/**/*.ts' 'test/**/*.ts' --max-warnings 0 --fix", - "fmt": "pnpm run fmt:sol && npm run fmt:ts", - "fmt:sol": "prettier 'contracts/**/*.sol' -w", - "fmt:ts": "prettier 'tasks/**/*.ts' 'test/**/*.ts' -w" + "fmt": "pnpm run fmt:sol:write && npm run fmt:ts:write", + "fmt:check": "pnpm run fmt:sol:check && npm run fmt:ts:check", + "fmt:sol:check": "prettier 'contracts/**/*.sol' --check", + "fmt:ts:check": "prettier 'tasks/**/*.ts' 'test/**/*.ts' --check", + "fmt:sol:write": "prettier 'contracts/**/*.sol' --write", + "fmt:ts:write": "prettier 'tasks/**/*.ts' 'test/**/*.ts' --write" }, "author": "safe-global", "license": "GPL-3.0",