Skip to content

Commit

Permalink
Fix eslint errors being silenced
Browse files Browse the repository at this point in the history
Fixed an issue where the new build pipeline was not properly showing
eslint errors
  • Loading branch information
StasTserk committed Jul 14, 2023
1 parent 6462477 commit d2cc45d
Show file tree
Hide file tree
Showing 7 changed files with 401 additions and 60 deletions.
2 changes: 1 addition & 1 deletion module/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export function onChatLogRender(html: JQuery): void {
);
}

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
export function hideChatButtonsIfNotOwner(
_message: unknown,
html: JQuery,
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
data: any
): void {
const message = html.find('div.chat-message');
Expand Down
2 changes: 1 addition & 1 deletion module/dialogs/burnerDataHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ function getAttrData(
};
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function extractBaseCharacterData(
html: JQuery<HTMLElement>
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): StringIndexedObject<string | StringIndexedObject<any>> {
// baseStats
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
2 changes: 1 addition & 1 deletion module/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ const actorTypes: Record<string, typeof FoundryDocument> = {};
actorTypes['character'] = BWCharacter as typeof FoundryDocument;
actorTypes['npc'] = Npc as typeof FoundryDocument;
actorTypes['setting'] = BWSetting as typeof FoundryDocument;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const actorConstructor = factory(
actorTypes,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Actor as any
) as typeof Actor;

Expand Down
2 changes: 1 addition & 1 deletion module/migration/task061.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export async function task061(): Promise<void> {
ui.notifications?.notify(message, 'info');
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
function updateToNumber(
value: string | number | number[] | string[] | null,
path: string,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
data: Record<string, any>
): void {
if (typeof value === 'number') {
Expand Down
Loading

0 comments on commit d2cc45d

Please sign in to comment.