1.1.1 • Published 2 months ago

eslint-plugin-immutable-class v1.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 months ago

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

RuleDescription:white_check_mark::wrench:
immutable-class/declare-implicit-fieldsEnsure that implicit Immutable Class properties are defined with declare:white_check_mark::wrench:
immutable-class/readonly-implicit-fieldsEnsure that implicit Immutable Class properties use readonly:white_check_mark::wrench: