Ban bad methods

This commit is contained in:
Andras Schmelczer 2025-11-23 15:12:55 +00:00
parent 17fa584ea1
commit 5a0c64d39c

View file

@ -37,6 +37,19 @@ export default [
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"@typescript-eslint/naming-convention": "off",
"no-restricted-properties": [
"error",
{
object: "Promise",
property: "all",
message: "Use Promise.allSettled instead of Promise.all to always await all promises."
},
{
object: "String",
property: "replace",
message: "Use replaceAll instead of replace to replace all occurrences of a substring."
}
],
"unused-imports/no-unused-vars": [
"warn",
{