# eslint-plugin-class-property

> Enforces semicolon after class properties

Latest version **1.1.0** (published 2017-12-31) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install eslint-plugin-class-property
pnpm add eslint-plugin-class-property
yarn add eslint-plugin-class-property
bun add eslint-plugin-class-property
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-12-31 |
| First published | 2016-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | marudor |
| Maintainers | marudor |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-class-property
- Repository: https://github.com/marudor/eslint-plugin-class-property
- Homepage: https://github.com/marudor/eslint-plugin-class-property#readme
- Issues: https://github.com/marudor/eslint-plugin-class-property/issues
- npm.io page: https://npm.io/package/eslint-plugin-class-property

## Dependencies (1)

- [eslint](https://npm.io/package/eslint.md) ^3.19.0

## 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.1.0 (latest) — 2017-12-31
- 1.0.6 — 2017-04-19
- 1.0.5 — 2017-04-19
- 1.0.4 — 2017-04-19
- 1.0.3 — 2017-01-10
- 1.0.2 — 2017-01-09
- 1.0.1 — 2016-08-23
- 1.0.0 — 2016-07-04
- 0.0.3 — 2016-03-15
- 0.0.2 — 2016-02-19
- 0.0.1 — 2016-02-19

## README

# eslint-plugin-class-property

## DEPRECATED

Please use [babel-plugin-eslint](https://github.com/babel/eslint-plugin-babel) with the babel/semi rule!

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```

Next, install `eslint-plugin-class-property`:

```
$ npm install eslint-plugin-class-property --save-dev
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-class-property` globally.

## Usage

Add `class-property` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
    "plugins": [
        "class-property"
    ]
}
```

## Supported Rules
### class-property/class-property-semicolon

This rule enforces consistent use of semicolons for class properties.

## Options

This rule has a single string optio:

* `"always"` (default) requires semicolons at the end of a class property
* `"never"` disallows semicolons as the end of a class property

### always

Examples of **incorrect** code for this rule with the default `"always"` option:

```js
/*eslint class-property/class-property-semicolon: ["error", "always"]*/

class MyClass {
    classProperty = 'foo'
}
```

Examples of **correct** code for this rule with the default `"always"` option:

```js
/*eslint class-property/class-property-semicolon: ["error", "always"]*/

class MyClass {
    classProperty = 'foo';
}
```

### never

Examples of **incorrect** code for this rule with the `"never"` option:

```js
/*eslint class-property/class-property-semicolon: ["error", "never"]*/

class MyClass {
    classProperty = 'foo';
}
```

Examples of **correct** code for this rule with the `"never"` option:

```js
/*eslint class-property/class-property-semicolon: ["error", "never"]*/

class MyClass {
    classProperty = 'foo'
}
```

---
_Source: https://npm.io/package/eslint-plugin-class-property · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
