fix no-prototype-builtins
parent
54b7034bf0
commit
7ed5f2e458
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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[] {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue