mirror of
https://github.com/callumalpass/tasknotes.git
synced 2026-07-22 12:50:26 +00:00
enforce prototype builtin lint rule
This commit is contained in:
parent
846d328d9f
commit
e948a7ebd9
2 changed files with 2 additions and 2 deletions
|
|
@ -321,7 +321,7 @@ export default [
|
|||
"warn",
|
||||
{ args: "none", varsIgnorePattern: "^_" },
|
||||
],
|
||||
"no-prototype-builtins": "off",
|
||||
"no-prototype-builtins": "error",
|
||||
"@typescript-eslint/no-empty-function": "off",
|
||||
"@typescript-eslint/ban-ts-comment": [
|
||||
"warn",
|
||||
|
|
|
|||
|
|
@ -272,6 +272,6 @@ function isInstanceOf<T extends Element>(
|
|||
): element is T {
|
||||
return (
|
||||
element.instanceOf?.(constructor) === true ||
|
||||
constructor.prototype.isPrototypeOf(element)
|
||||
Object.prototype.isPrototypeOf.call(constructor.prototype, element)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue