Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

230
Visualizações
Configure Prettier to use up the max allowed number of columns if code content will fit

Does anyone know if it's possible to configure Prettier in such a way to use up as much column space allowed, while still respecting the rest of the prettier/lint rules configured? So, if Prettier's printWidth is set to 80 for example, and your code runs over that amount, prettier will wrap the line, but if you manually wrap your lines even though they could fit within a single line, Prettier won't do the reverse and put it all on one line.

So for example:

const someObject = {
  someProperty: 'some value',
};

could easily fit into a single line: const someObject = {someProperty: 'some value'}; but prettier won't remove the new lines and put everything on one line.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda