configure
Code Formatters Integration
Codey automatically triggers formatters after writing or editing files. This keeps your codebase clean.
#Configuring Formatters
Codey automatically looks for project configs (e.g. Prettier or ESLint). You can disable built-ins or define custom formatter commands in codey.json:
json
{
"formatter": {
"prettier": {
"disabled": false
},
"custom-formatter": {
"command": ["npx", "eslint", "--fix", "$FILE"],
"extensions": [".js", ".ts"]
}
}
}