fix no-prototype-builtins

pull/8592/head
Niklas Fiekas 2021-04-07 16:36:52 +02:00
parent 54b7034bf0
commit 7ed5f2e458
3 changed files with 2 additions and 3 deletions

View File

@ -35,7 +35,6 @@
"@typescript-eslint/no-empty-function": "off",
"no-self-assign": "off",
"no-constant-condition": "off",
"no-prototype-builtins": "off",
"no-async-promise-executor": "off"
}
}

View File

@ -146,7 +146,7 @@ export function view(ctrl: StudyChapterEditFormCtrl): VNode | undefined {
}
function isLoaded(data: StudyChapterMeta | StudyChapterConfig): data is StudyChapterConfig {
return data.hasOwnProperty('orientation');
return 'orientation' in data;
}
function viewLoaded(ctrl: StudyChapterEditFormCtrl, data: StudyChapterConfig): VNode[] {

View File

@ -8,7 +8,7 @@ type MoveTestReturn = undefined | 'fail' | 'win' | MoveTest;
type AltCastle = keyof typeof altCastles;
function isAltCastle(str: string): str is AltCastle {
return altCastles.hasOwnProperty(str);
return str in altCastles;
}
export default function moveTest(vm: Vm, puzzle: Puzzle): MoveTestReturn {