Linter errors fixed

This commit is contained in:
Pavel Gnedov 2022-05-17 16:30:27 +07:00
parent 2fb145d671
commit 8e8c9626b3

View file

@ -1,7 +1,7 @@
/// <reference types="typescript" /> /// <reference types="typescript" />
// eslint-disable-next-line @typescript-eslint/prefer-namespace-keyword
export module RedmineTypes { export module RedmineTypes {
export type IdAndName = { export type IdAndName = {
id: number; id: number;
name: string; name: string;
@ -48,14 +48,15 @@ export module RedmineTypes {
updated_on?: string; updated_on?: string;
closed_on?: string; closed_on?: string;
relations?: Record<string, any>[]; relations?: Record<string, any>[];
} };
// eslint-disable-next-line @typescript-eslint/prefer-namespace-keyword
export module Unknown { export module Unknown {
export const num = -1; export const num = -1;
export const str = ''; export const str = '';
export const idAndName: IdAndName = { export const idAndName: IdAndName = {
id: -1, id: -1,
name: str name: str,
}; };
export const unknownName = 'Unknown'; export const unknownName = 'Unknown';
export const subject = 'Unknown'; export const subject = 'Unknown';
@ -76,14 +77,14 @@ export module RedmineTypes {
spent_hours: num, spent_hours: num,
total_spent_hours: num, total_spent_hours: num,
custom_fields: [], custom_fields: [],
created_on: date created_on: date,
}; };
export const user: User = { export const user: User = {
id: num, id: num,
firstname: unknownName, firstname: unknownName,
lastname: unknownName, lastname: unknownName,
mail: str mail: str,
}; };
} }
@ -92,6 +93,5 @@ export module RedmineTypes {
firstname: string; firstname: string;
lastname: string; lastname: string;
mail: string; mail: string;
} };
}
}