Version: 0.51.1
expectation:ternary expression multi-level indentation , consistent with ESLint
kebabToCamel(str: string): string {
return arr
.map((word, index) => (index === 0
? ''
: index === 1
? word.toLowerCase()
: word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
)
.join('');
},
Actual:
kebabToCamel(str: string): string {
return str
.split('-')
.map((word, index) => (index === 0
? ''
: index === 1
? word.toLowerCase()
: word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
)
.join('');
},
Version: 0.51.1
expectation:ternary expression multi-level indentation , consistent with ESLint
Actual: