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 68d031a commit c5b14ba
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 @@ -11,7 +11,7 @@
"spec": "vitest run",
"coverage": "vitest run --coverage",
"lint": "eslint",
"format": "prettier --write '**/*.{js,jsx}'",
"format": "prettier $([ $CI ] && echo '--check' || echo '--write') '**/*.{js,jsx,json,yml}'",
"verify": "npm run lint && npm run format",
"test": "npm run verify && npm run spec"
},
Expand Down

0 comments on commit c5b14ba

Please sign in to comment.