Skip to content

Commit

Permalink
Run formatting in check mode in CI environment
Browse files Browse the repository at this point in the history
  • Loading branch information
i-like-robots committed Dec 9, 2024
1 parent ace7d39 commit b0fa41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build:types": "dts-bundle-generator -o dist/types.d.ts src/index.ts",
"type-check": "tsc --noEmit",
"lint": "eslint",
"format": "prettier --write '**/*.{ts,tsx,js,jsx,json,yml}'",
"format": "prettier $([ $CI ] && echo '--check' || echo '--write') '**/*.{js,jsx,ts,tsx,json,yml}'",
"spec": "vitest run",
"coverage": "vitest run --coverage",
"verify": "npm run lint && npm run type-check && npm run format",
Expand Down

0 comments on commit b0fa41c

Please sign in to comment.