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

> stylelint rule block-opening-brace-empty-line-after

Latest version **1.0.1** (published 2019-10-22) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install stylelint-plugin-block-opening-brace-empty-line-after
pnpm add stylelint-plugin-block-opening-brace-empty-line-after
yarn add stylelint-plugin-block-opening-brace-empty-line-after
bun add stylelint-plugin-block-opening-brace-empty-line-after
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-10-22 |
| First published | 2019-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aleksei Androsov |
| Maintainers | doochik |
| Keywords | stylelint, stylelint-plugin |

## Links

- npm: https://www.npmjs.com/package/stylelint-plugin-block-opening-brace-empty-line-after
- Repository: https://github.com/doochik/stylelint-plugin-block-opening-brace-empty-line-after
- Homepage: https://github.com/doochik/stylelint-plugin-block-opening-brace-empty-line-after#readme
- Issues: https://github.com/doochik/stylelint-plugin-block-opening-brace-empty-line-after/issues
- npm.io page: https://npm.io/package/stylelint-plugin-block-opening-brace-empty-line-after

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-10-22
- 1.0.0 — 2019-10-22

## README

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

[![TravisCI Status](https://travis-ci.org/doochik/stylelint-plugin-block-opening-brace-empty-line-after.svg?branch=master)](https://travis-ci.org/doochik/stylelint-plugin-block-opening-brace-empty-line-after)
[![NPM
version](https://img.shields.io/npm/v/stylelint-plugin-block-opening-brace-empty-line-after.svg)](https://www.npmjs.org/package/stylelint-plugin-block-opening-brace-empty-line-after)

## Deprecated

⚠️ This plugin is deprecated since [stylelint-order@4.0.0](https://github.com/hudochenkov/stylelint-order/releases/tag/4.0.0).
* https://github.com/hudochenkov/stylelint-order/commit/a84d26470bea56099f5169b9dc179ef5af0efa75
* https://github.com/hudochenkov/stylelint-order/issues/95
* https://github.com/stylelint/stylelint/issues/4366

## Motivation

This is symmetric rule to [block-closing-brace-empty-line-before](https://stylelint.io/user-guide/rules/block-closing-brace-empty-line-before)

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

```js
// 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.

```css

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

The `--fix` option on the [command line](https://stylelint.io/user-guide/cli#autofixing-errors) 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:

```css
a {
  color: pink;
}
```

The following patterns are *not* considered violations:

```css
a {

  color: pink;
}
```

```css
a { color: pink; }
```

#### `never`

The following patterns are considered violations:

```css
a {

  color: pink;
}
```

The following patterns are *not* considered violations:

```css
a {
  color: pink;
}
```

```css
a { color: pink; }
```

---
_Source: https://npm.io/package/stylelint-plugin-block-opening-brace-empty-line-after · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
