textComp() {
return this.props.GMarcha
? this.props.english
? 'On'
: 'Encendido'
: this.props.english
? 'Off'
: 'Apagado';
}
I have this function. When I use Prettier to format it it stays like this:
textComp() {
return this.props.GMarcha
? this.props.english
? 'On'
: 'Encendido'
: this.props.english
? 'Off'
: 'Apagado';
}
Is there any way that when formatting it stays as I put it?