npm.io
1.0.1 • Published 6 years ago

stylelint-plugin-block-opening-brace-empty-line-after

Licence
MIT
Version
1.0.1
Deps
0
Size
9 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

stylelint-plugin-block-opening-brace-empty-line-after

TravisCI Status NPM
version

Deprecated

This plugin is deprecated since stylelint-order@4.0.0.

Motivation

This is symmetric rule to block-closing-brace-empty-line-before

npm install --save-dev stylelint-plugin-block-opening-brace-empty-line-after

// stylelint.config.js

module.exports = {
    plugins: [
        // ...
        'stylelint-plugin-block-opening-brace-empty-line-after',
    ],
    rules: {
        // ...
        'plugin/block-opening-brace-empty-line-after': 'never',
    },
};  

block-opening-brace-empty-line-after

Require or disallow an empty line after the opening brace of blocks.


/** This line
     ↓ */
a /* ↓ */
{ /* ↓ */
  /* ← */
  color: pink;
}

The --fix option on the command line can automatically fix all of the problems reported by this rule.

Options

string: "always-multi-line"|"never"

always-multi-line

The following patterns are considered violations:

a {
  color: pink;
}

The following patterns are not considered violations:

a {

  color: pink;
}
a { color: pink; }
never

The following patterns are considered violations:

a {

  color: pink;
}

The following patterns are not considered violations:

a {
  color: pink;
}
a { color: pink; }

Keywords