Format on Save Hook
Runs Prettier (or your formatter) automatically after the agent edits a file, so every change lands already formatted. Drop into your Cursor hooks.jso…
#hooks #formatting #prettier +1
Cursor
DetailsA sane Prettier config plus the ESLint integration so formatting and linting never fight. Drop into your project root and let the agent follow it.
#settings #prettier #eslint #formatting
Snippet
// .prettierrc.json
{
"semi": true,
"singleQuote": false,
"trailingComma": "all",
"printWidth": 80,
"tabWidth": 2
}
Default config location for each supported agent.
.cursor/mcp.json.claude/settings.json.windsurf/mcp.json.cline/mcp.json.codex/config.toml.github/copilot/mcp.jsonRuns Prettier (or your formatter) automatically after the agent edits a file, so every change lands already formatted. Drop into your Cursor hooks.jso…
#hooks #formatting #prettier +1
Cursor
Details