# eslint-plugin-class-types

> Check class order for when using https://github.com/fleck/class-types.macro

Latest version **1.0.3** (published 2023-10-01) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2023-10-01 |
| First published | 2020-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 65.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jonathan Fleckenstein |
| Maintainers | jfleckenstein |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-class-types
- Repository: https://github.com/fleck/eslint-plugin-class-types
- npm.io page: https://npm.io/package/eslint-plugin-class-types

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.0.1
- [postcss-class-types](https://npm.io/package/postcss-class-types.md) *

## 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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2023-10-01
- 1.0.2 — 2021-07-07
- 1.0.1 — 2021-07-07
- 1.0.0 — 2021-02-23
- 0.22.0 — 2020-11-12
- 0.21.0 — 2020-11-10
- 0.20.0 — 2020-11-10

## README

# eslint-plugin-class-types

Check class order for when using https://github.com/fleck/class-types.macro

## Installation

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

```bash
yarn add eslint -D
# or via npm
$ npm i eslint --save-dev
```

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

```bash
yarn add eslint-plugin-class-types -D
# or via npm
$ npm install eslint-plugin-class-types --save-dev
```

## Usage

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

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


Then configure the rules you want to use under the rules section.

```json
{
    "rules": {
        "class-types/class-order": 2
    }
}
```

## Supported Rules

class-types/class-order is the only rule. Set it to 1 and it will throw warnings. Setting it to 2 will throw errors.

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