TSLint - Require Spaces Inside Array Brackets

450 Views Asked by At

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' );
    }
}
0

There are 0 best solutions below