refactor: add noImplicitOverride rule

This commit is contained in:
Johannes Millan 2024-02-01 19:02:42 +01:00
parent b8ef9509b7
commit 0da1a080c6
4 changed files with 8 additions and 7 deletions

View file

@ -21,7 +21,7 @@ export class IconInputComponent extends FieldType<FormlyFieldConfig> implements
return this.to.type || 'text';
}
ngOnInit(): void {
override ngOnInit(): void {
this.filteredIcons$ = this.formControl.valueChanges.pipe(
startWith(''),
filter((searchTerm) => !!searchTerm),

View file

@ -19,11 +19,11 @@ export class DialogAddNoteComponent
extends DialogFullscreenMarkdownComponent
implements OnDestroy
{
T: typeof T = T;
data: { content: string };
override T: typeof T = T;
override data: { content: string };
constructor(
public _matDialogRef: MatDialogRef<DialogAddNoteComponent>,
public override _matDialogRef: MatDialogRef<DialogAddNoteComponent>,
private _noteService: NoteService,
) {
const data = { content: sessionStorage.getItem(SS.NOTE_TMP) || '' };
@ -31,7 +31,7 @@ export class DialogAddNoteComponent
this.data = data;
}
close(isSkipSave: boolean = false): void {
override close(isSkipSave: boolean = false): void {
if (!isSkipSave && this.data.content && this.data.content.trim().length > 0) {
this._noteService.add({ content: this.data.content }, true);
this._clearSessionStorage();
@ -39,7 +39,7 @@ export class DialogAddNoteComponent
this._matDialogRef.close();
}
ngModelChange(val: string = this.data.content || ''): void {
override ngModelChange(val: string = this.data.content || ''): void {
sessionStorage.setItem(SS.NOTE_TMP, val);
}

View file

@ -10,7 +10,7 @@ const DIRECTION_HORIZONTAL = DIRECTION_LEFT | DIRECTION_RIGHT;
@Injectable({ providedIn: 'root' })
export class MyHammerConfig extends HammerGestureConfig {
overrides: {
override overrides: {
[key: string]: Record<string, unknown>;
} = {
swipe: { direction: DIRECTION_HORIZONTAL },

View file

@ -14,6 +14,7 @@
"noImplicitReturns": true,
"noUnusedLocals": false,
"noImplicitAny": false,
"noImplicitOverride": true,
"strictPropertyInitialization": true,
"target": "ES2015",
"resolveJsonModule": true,