# eslint-plugin-immutable-class

> ESLint plugin for immutable-class

Latest version **2.0.3** (published 2025-10-21) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

**Score 50/100 (C)** — status: stable.

Positive: no vulnerabilities; has provenance.

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

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2025-10-21 |
| First published | 2022-02-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 37 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 8 |
| Author | John Gozde |
| Maintainers | vadimon, lorem--ipsum, jgoz |
| Keywords | immutable, class, eslint, eslintplugin |

## Links

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

## Dependencies (1)

- [@typescript-eslint/utils](https://npm.io/package/@typescript-eslint/utils.md) ^8.0.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

- 2.0.3 (latest) — 2025-10-21
- 2.0.2 — 2025-10-21
- 2.0.1 — 2024-10-15
- 2.0.0 — 2024-10-15
- 1.1.1 — 2024-03-09
- 1.1.0 — 2023-09-08
- 1.0.0 — 2022-02-03

## README

# Immutable Class ESLint Plugins

An ESLint plugin with various rules for enforcing `immutable-class` requirements.

## Usage

```shell
$ npm i -D eslint-plugin-immutable-class
```

`eslint.config.mjs`:

```js
import immutableClass from 'eslint-plugin-immutable-class';

export default [immutableClass.recommended];
```

## Rules

**Key**: :white_check_mark: = recommended, :wrench: = fixable

| Rule                                                                                  | Description                                                                | :white_check_mark: | :wrench: |
| ------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | ------------------ | -------- |
| [`immutable-class/declare-implicit-fields`](./src/rules/declare-implicit-fields.md)   | Ensure that implicit Immutable Class properties are defined with `declare` | :white_check_mark: | :wrench: |
| [`immutable-class/readonly-implicit-fields`](./src/rules/readonly-implicit-fields.md) | Ensure that implicit Immutable Class properties use `readonly`             | :white_check_mark: | :wrench: |

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