dprint / dprint-plugin-typescript

TypeScript and JavaScript code formatting plugin for dprint.
https://dprint.dev/plugins/typescript
MIT License
255 stars 57 forks source link

feat: add catchClause.spaceAround #608

Closed Thristhart closed 7 months ago

Thristhart commented 8 months ago

This adds spaces around the parameter in a catch clause. Examples:

// catchClause.spaceAround: false
try {
    a;
}
catch(ex){
    b;
}
// catchClause.spaceAround: true
try {
    a;
} catch ( ex ) {
    b;
}