我设置了一些tslint规则,以便我和我的团队更好地遵守我们的代码合同。有没有什么可以使用tslint或vs代码来强制使用多行结构
例如
此
constructor(
private coreWebServices: CoreWebServices,
private deviceDiscoveryService: DeviceDiscoveryService,
private eventsService: EventsService,
private log: LogService,
private newsService: NewsService,
private route: ActivatedRoute,
private router: Router,
private runtimeService: RunTimeService
) { }
代替这个
constructor(private coreWebServices: CoreWebServices, private deviceDiscoveryService: DeviceDiscoveryService, private eventsService: EventsService, private log: LogService, private newsService: NewsService, private route: ActivatedRoute, private router: Router, private runtimeService: RunTimeService)
{ }
答案 0 :(得分:0)
答案 1 :(得分:-1)
如果您在该行之后添加评论,那么显然存在黑客入侵。
来源:我的同事和https://github.com/prettier/prettier-vscode/issues/352