dar*_*ong 5 typescript jscs tslint
是否可以像我们在JSCS中所做的那样,在 TSLint 中的数组括号、函数、if、for、switch 和对象文字中强制使用空格?
例如:
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' );
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
373 次 |
| 最近记录: |