prefer-structured-clone
Added in v0.9.4Configuration
rslint.config.ts
Prefer structuredClone when creating deep clones.
The rule recognizes:
JSON.parse(JSON.stringify(value))_.cloneDeep(value)lodash.cloneDeep(value)- additional configured function paths
The rule reports suggestions only; it does not autofix automatically.
Custom functions can be configured through the functions option.
This port follows eslint-plugin-unicorn v75.0.0 and preserves authored parentheses, comments, and trailing commas in suggestions.