Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TSLint , enforce spacing between brackets in import statements

Which rule do I need to apply to enforce spaces between curly brackets in the import statements?

i.e

Instead of :

import {IPostService} from './api/IPostService'; 

I want:

import { IPostService } from './api/IPostService'; 
like image 398
fgonzalez Avatar asked Jul 14 '18 23:07

fgonzalez


1 Answers

I think this might be what you're looking for:

"whitespace": [true, "check-module"] 

check-module - checks for whitespace in import & export statements.

like image 58
kshetline Avatar answered Sep 23 '22 05:09

kshetline