Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
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 answers
Answer question

0

Could you try this instead?

'declaration-no-important': [true, { 'severity': 'warning' }]
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!