Opened 3 years ago

Closed 3 years ago

#6203 closed defect (fixed)

Fix rule-empty-line-before in stylelint-config-eyeo

Reported by: ire Assignee: ire
Priority: P3 Milestone:
Module: Websites Keywords:
Cc: saroyanm, greiner, martin, p.pastourmatzis, erick, fhd, juliandoucette Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29643571

Description

Environment

Any

How to reproduce

  1. Follow the instructions to install stylelint-config-eyeo from codingtools
  2. Run the stylelint command with any CSS file

Observed behaviour

See error:

Invalid Option: Invalid value "first-nested" for option "ignore" of rule "rule-empty-line-before"

Expected behaviour

The first-nested rule should be an option for except within the rule rule-empty-line-before.

What to do

Change the rule-empty-line-before to the following:

    // Separate rules by an empty line
    "rule-empty-line-before": ["always", {
      "ignore": ["after-comment"],
      "except": ["first-nested"]
    }],

Change History (3)

comment:1 Changed 3 years ago by ire

  • Review URL(s) modified (diff)
  • Status changed from new to reviewing

comment:2 Changed 3 years ago by abpbot

A commit referencing this issue has landed:
Issue 6203 - Fix rule-empty-line-before in stylelint-config-eyeo

comment:3 Changed 3 years ago by ire

  • Resolution set to fixed
  • Status changed from reviewing to closed
Note: See TracTickets for help on using tickets.