Respect/Enforce line break after class declaration
Respect/Enforce line break after class declaration, I'm talking about second line break after `export class X {` Less readable: ```ts export class SlackPeopleSync { constructor(setting: Setting) { this.setting = setting this.loader = new SlackLoader(this.setting) } async run() { console.log(`loading slack users`) const users = await this.loader.loadUsers() console.log(`loaded slack users`, users) const bits = await Promise.all( users.map(user => createOrUpdatePerson(user)), ) console.log(`updated bits`, bits) } } ``` More readable: ```ts export class SlackPeopleSync { constructor(setting: Setting) { this.setting = setting this.loader = new SlackLoader(this.setting) } async run() { console.log(`loading slack users`) const users = await this.loader.loadUsers() console.log(`loaded slack users`, users) const bits = await Promise.all( users.map(user => createOrUpdatePerson(user)), ) console.log(`updated bits`, bits) } } ``` Less readable: ```ts export class SlackPeopleSync { setting: Setting loader: SlackLoader constructor(setting: Setting) { this.setting = setting this.loader = new SlackLoader(this.setting) } async run() { console.log(`loading slack users`) const users = await this.loader.loadUsers() console.log(`loaded slack users`, users) const bits = await Promise.all( users.map(user => createOrUpdatePerson(user)), ) console.lo
Posted by pleerock on Jul 22, 2018, 8:54 AM
Tags
Related issues
- struct's lifetime requirements can be bypassed via covariant field assignment
- Proposal to Reorganize the Moderation Team and Review Moderation Policies
- Progressive FPS degradation appears to be related to dota2.com — blocking the domain prevents the performance loss
- proposal: container/...: generic collection types
- Better Custom Endpoint BYOK
- A concrete policy for backward compatibility until Godot 5.0
Raise real-world problems, find people facing the same issue, and discuss solutions.4,000 issues0 comments
github (Other)
struct's lifetime requirements can be bypassed via covariant field assignment
Proposal to Reorganize the Moderation Team and Review Moderation Policies
Progressive FPS degradation appears to be related to dota2.com — blocking the domain prevents the performance loss
proposal: container/...: generic collection types
Better Custom Endpoint BYOK
A concrete policy for backward compatibility until Godot 5.0
New MTP models not supported
Tracking: 429 / Capacity Issues
Respect/Enforce line break after class declaration
Respect/Enforce line break after class declaration, I'm talking about second line break after `export class X {` Less readable: ```ts export class SlackPeopleSync { constructor(setting: Setting) { this.setting = setting this.loader = new SlackLoader(this.setting) } async run() { console.log(`loading slack users`) const users = await this.loader.loadUsers() console.log(`loaded slack users`, users) const bits = await Promise.all( users.map(user => createOrUpdatePerson(user)), ) console.log(`updated bits`, bits) } } ``` More readable: ```ts export class SlackPeopleSync { constructor(setting: Setting) { this.setting = setting this.loader = new SlackLoader(this.setting) } async run() { console.log(`loading slack users`) const users = await this.loader.loadUsers() console.log(`loaded slack users`, users) const bits = await Promise.all( users.map(user => createOrUpdatePerson(user)), ) console.log(`updated bits`, bits) } } ``` Less readable: ```ts export class SlackPeopleSync { setting: Setting loader: SlackLoader constructor(setting: Setting) { this.setting = setting this.loader = new SlackLoader(this.setting) } async run() { console.log(`loading slack users`) const users = await this.loader.loadUsers() console.log(`loaded slack users`, users) const bits = await Promise.all( users.map(user => createOrUpdatePerson(user)), ) console.lo
Comments (0)
No comments yet. Start the discussion.