Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

Force multiline typescript constructor in VS Code

$
0
0

I'm setting up some tslint rules, in order for my team and I to better adhere to our code contract. Is there any weay to use tslint, or vs code in general, to force the use of multiline contructors

eg

this

  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
  ) {  }

in stead of this

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)
   { }

Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>