mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Forbid usage of constructor.name in the codebase (#6819)
Only show in developer changelog
This commit is contained in:
@@ -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": [
|
||||
|
Reference in New Issue
Block a user