eslint-plugin-immutable-class
v1.1.1
Published
ESLint plugin for immutable-class
Downloads
87
Readme
Immutable Class ESLint Plugins
An ESLint plugin with various rules for enforcing immutable-class
requirements.
Usage
$ npm i -D eslint-plugin-immutable-class @typescript-eslint/parser
.eslintrc
:
{
"plugins": ["immutable-class"],
"extends": "plugin:immutable-class/recommended",
"parser": "@typescript-eslint/parser"
}
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: |