5

Is it possible to enforce spaces inside array brackets, functions, if, for, switch, and object literals in TSLint just like we can do with JSCS?

For example:

const list = [ 1, 2, 3 ];

console.debug( list[ 1 ]; );

function foo ( a, b, c ) {
    ...
}

const obj = { bar: 'bar' };

while ( true ) {
    if ( false ) { 
        console.log( 'bar' );
    }
}
darksoulsong
  • 13,988
  • 14
  • 47
  • 90

0 Answers0