Skip to main content

ðŸ”ĩ Recommended

Use this preset as the default low-friction entrypoint focused on high-signal mutation hazards.

Config key​

immutable.configs.recommended

Flat Config example​

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

export default [immutable.configs.recommended];

Move to immutable when you also want no-let, readonly typing, and warning-level method-signature guidance in your baseline. For stronger functional constraints after that, move to functional-lite, then functional, or use all for full coverage.

Rules in this preset​

  • Fix legend:
    • 🔧 = autofixable
    • ðŸ’Ą = suggestions available
    • — = report only
RuleFix
immutable-data—
no-abort-controller-mutation—
no-atomics-mutation—
no-buffer-mutation—
no-cache-api-mutation—
no-cookie-mutation—
no-data-view-mutation—
no-date-mutation—
no-dom-token-list-mutation—
no-form-data-mutation—
no-headers-mutation—
no-history-mutation—
no-location-mutation—
no-map-set-mutation—
no-process-env-mutation—
no-reflect-mutation—
no-regexp-lastindex-mutation—
no-stateful-regexp—
no-storage-mutation—
no-typed-array-mutation—
no-url-mutation—
no-url-search-params-mutation—