Forbid usage of constructor.name in the codebase (#6819)

Only show in developer changelog
This commit is contained in:
Florian Rival
2024-07-30 17:33:22 +02:00
committed by GitHub
parent 282f4c184f
commit 803a55869c

View File

@@ -152,6 +152,13 @@
}
]
}
],
"no-restricted-syntax": [
"error",
{
"selector": "MemberExpression[object.property.name='constructor'][property.name='name']",
"message": "'constructor.name' is not reliable (can become 'E', 'P' and etc.) in production build."
}
]
},
"overrides": [