Enable unicorn/no-error-property-assignment rule (#19377)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-06-16 04:28:26 +08:00
1 parent 649be79d91
commit 5ecfee1ac5
2 files changed
+3 -3

No files matched your search

+2 -3
View File
@@ -258,6 +258,8 @@ const configs = [
"unicorn/no-await-expression-member": "off",
"unicorn/no-for-loop": "off",
"unicorn/no-hex-escape": "off",
// Bug on `"\u{3000}"`
"unicorn/no-incorrect-template-string-interpolation": "off",
"unicorn/no-negated-condition": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/no-null": "off",
@@ -332,9 +334,6 @@ const configs = [
"unicorn/prefer-await": "off",
"unicorn/no-top-level-side-effects": "off",
"unicorn/prefer-array-from-map": "off",
"unicorn/no-error-property-assignment": "off",
// Bug on `"\u{3000}"`
"unicorn/no-incorrect-template-string-interpolation": "off",
},
linterOptions: {
@@ -85,6 +85,7 @@ function deserializeError(serialized) {
Object.assign(error, serialized);
if (serialized.cause) {
// eslint-disable-next-line unicorn/no-error-property-assignment
error.cause = deserializeError(serialized.cause);
}