eslint-plugin-immutable-class
v2.0.1
Published
ESLint plugin for immutable-class
Downloads
63
Readme
Immutable Class ESLint Plugins
An ESLint plugin with various rules for enforcing immutable-class
requirements.
Usage
$ npm i -D eslint-plugin-immutable-class
eslint.config.mjs
:
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
| Ensure that implicit Immutable Class properties are defined with declare
| :white_check_mark: | :wrench: |
| immutable-class/readonly-implicit-fields
| Ensure that implicit Immutable Class properties use readonly
| :white_check_mark: | :wrench: |