WordPress-Coding-Standards / stylelint-config-wordpress

WordPress shareable config for stylelint Note: Migrating to Gutenberg repo:

Home Page:https://github.com/WordPress/gutenberg/pull/22777

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `ignore: ["between-comments"]` option to `comment-empty-line-before` rule

ntwb opened this issue · comments

    "comment-empty-line-before": [ "always", {
      ignore: ["between-comments"],
      ignore: ["stylelint-commands"],
      except: ["first-nested"],
    } ],

Currently the above fails due to multiple ignore options in the configuration see stylelint/stylelint#1460

https://make.wordpress.org/core/handbook/best-practices/coding-standards/css/#media-queries

The correct syntax is:

    "comment-empty-line-before": [ "always", {
      except: ["first-nested"],
      ignore: [ "between-comments", "stylelint-commands" ],
    } ],