# tslint-line-before-constructor

> Custom rule for TSLint to assure that constructor has blank line before declaration

Latest version **0.5.1** (published 2019-02-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install tslint-line-before-constructor
pnpm add tslint-line-before-constructor
yarn add tslint-line-before-constructor
bun add tslint-line-before-constructor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2019-02-21 |
| First published | 2019-02-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ivan Minich |
| Maintainers | toxity |
| Keywords | tslint, custom-tslint-rule |

## Links

- npm: https://www.npmjs.com/package/tslint-line-before-constructor
- Repository: https://github.com/toxity/tslint-line-before-constructor
- Homepage: https://github.com/toxity/tslint-line-before-constructor#readme
- Issues: https://github.com/toxity/tslint-line-before-constructor/issues
- npm.io page: https://npm.io/package/tslint-line-before-constructor

## 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

- 0.5.1 (latest) — 2019-02-21
- 0.5.0 — 2019-02-21

## README

# tslint-line-before-constructor
[![npm version](https://badge.fury.io/js/tslint-line-before-constructor.svg)](https://github.com/toxity/tslint-line-before-constructor)
[![CircleCI](https://travis-ci.org/toxity/tslint-line-before-constructor.svg?branch=master)](https://github.com/toxity/tslint-line-before-constructor)

Custom rule for TSLint to assure that constructor has blank line before declaration

## Install
```bash
npm install --save-dev tslint-line-before-constructor
```

## Configuration
Update `tslint.json` file and add new rules directory with new rule itself
```json
{
    "rulesDirectory": [
      "tslint-line-before-constructor"
    ],
    "rules": {
      "tslint-line-before-constructor": true
    }
}
```

## Example
```javascript
// Bad
class Name {
    constructor() {}
}

// Good
class Name {
    
    constructor() {}
    
    public method(): void { }
   
    ...
}
```

---
_Source: https://npm.io/package/tslint-line-before-constructor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
