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

127
Visualizações
Stylelint not warning about !important

I have a project that make use of styled-components and I just have installed Stylelint following the official guide[1].

My .stylelintrc.json already have declaration-no-important set to true but seems have no effect, because I have one component that make use of !important (see bellow)

{
  "processors": ["stylelint-processor-styled-components"],
  "extends": ["stylelint-config-recommended", "stylelint-config-styled-components"],
  "rules": {
      "declaration-no-important": true
  }
}
$ ag important
lib/components/molecules/Checkbox/Checkbox.styles.ts
24:      border-color: #7e77a1 !important;

What I need to do to Stylelint warn me about the use of !important?

1 - https://styled-components.com/docs/tooling#stylelint

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Could you try this instead?

'declaration-no-important': [true, { 'severity': 'warning' }]
about 4 years ago · Juan Pablo Isaza Relatório
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