Skip to main content

eslint-plugin-immutable-2

ESLint plugin for teams that want consistent immutable and functional TypeScript conventions.

The plugin ships focused presets for modern Flat Config usage.

Installation​

npm install --save-dev eslint-plugin-immutable-2 typescript

@typescript-eslint/parser is loaded automatically by plugin presets.

Quick start (Flat Config)​

import immutable from "eslint-plugin-immutable-2";

export default [immutable.configs.recommended];

recommended maps to the immutable baseline preset.

Presets​

PresetPreset page
ðŸŸĒ immutable.configs["functional-lite"]Functional Lite
ðŸŸĄ immutable.configs.functionalFunctional
🟠 immutable.configs.immutableImmutable
ðŸ”ĩ immutable.configs.recommendedRecommended
ðŸŸĢ immutable.configs.allAll

Next steps​

  • Open Getting Started in this sidebar.
  • Browse Presets for preset-by-preset guidance.
  • Use Rules to review every rule with examples.