diff --git a/helpers/functions.cache.d.ts b/helpers/functions.cache.d.ts index d580aa1f..c2f43776 100644 --- a/helpers/functions.cache.d.ts +++ b/helpers/functions.cache.d.ts @@ -21,6 +21,6 @@ export declare function getWorkOrderMilestoneTypeByWorkOrderMilestoneType(workOr export declare function getWorkOrderMilestoneTypes(): WorkOrderMilestoneType[]; export declare function preloadCaches(): void; export declare const cacheTableNames: readonly ["BurialSiteStatuses", "BurialSiteTypeFields", "BurialSiteTypes", "CommittalTypes", "ContractTypeFields", "ContractTypePrints", "ContractTypes", "FeeCategories", "Fees", "IntermentContainerTypes", "WorkOrderMilestoneTypes", "WorkOrderTypes"]; -export type CacheTableNames = typeof cacheTableNames[number]; +export type CacheTableNames = (typeof cacheTableNames)[number]; export declare function clearCacheByTableName(tableName: CacheTableNames, relayMessage?: boolean): void; export declare function clearCaches(): void; diff --git a/helpers/functions.cache.js b/helpers/functions.cache.js index f7a08c04..e1748372 100644 --- a/helpers/functions.cache.js +++ b/helpers/functions.cache.js @@ -1,5 +1,3 @@ -// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair -/* eslint-disable perfectionist/sort-modules */ import cluster from 'node:cluster'; import Debug from 'debug'; import getBurialSiteStatusesFromDatabase from '../database/getBurialSiteStatuses.js'; diff --git a/helpers/functions.cache.ts b/helpers/functions.cache.ts index 0f869b24..1e9458e2 100644 --- a/helpers/functions.cache.ts +++ b/helpers/functions.cache.ts @@ -1,6 +1,3 @@ -// eslint-disable-next-line @eslint-community/eslint-comments/disable-enable-pair -/* eslint-disable perfectionist/sort-modules */ - import cluster from 'node:cluster' import Debug from 'debug' @@ -31,7 +28,9 @@ import type { import { getConfigProperty } from './config.helpers.js' -const debug = Debug(`${DEBUG_NAMESPACE}:functions.cache:${process.pid.toString().padEnd(5)}`) +const debug = Debug( + `${DEBUG_NAMESPACE}:functions.cache:${process.pid.toString().padEnd(5)}` +) /* * Burial Site Statuses @@ -306,21 +305,21 @@ export function preloadCaches(): void { } export const cacheTableNames = [ - 'BurialSiteStatuses' - , 'BurialSiteTypeFields' - , 'BurialSiteTypes' - , 'CommittalTypes' - , 'ContractTypeFields' - , 'ContractTypePrints' - , 'ContractTypes' - , 'FeeCategories' - , 'Fees' - , 'IntermentContainerTypes' - , 'WorkOrderMilestoneTypes' - , 'WorkOrderTypes' + 'BurialSiteStatuses', + 'BurialSiteTypeFields', + 'BurialSiteTypes', + 'CommittalTypes', + 'ContractTypeFields', + 'ContractTypePrints', + 'ContractTypes', + 'FeeCategories', + 'Fees', + 'IntermentContainerTypes', + 'WorkOrderMilestoneTypes', + 'WorkOrderTypes' ] as const -export type CacheTableNames = typeof cacheTableNames[number] +export type CacheTableNames = (typeof cacheTableNames)[number] export function clearCacheByTableName( tableName: CacheTableNames, diff --git a/windowsService-uninstall.js b/windowsService-uninstall.js index 710c36a5..1537472f 100644 --- a/windowsService-uninstall.js +++ b/windowsService-uninstall.js @@ -1,4 +1,4 @@ -/* eslint-disable unicorn/filename-case, @eslint-community/eslint-comments/disable-enable-pair */ +/* eslint-disable no-console, unicorn/filename-case, @eslint-community/eslint-comments/disable-enable-pair */ import { Service } from 'node-windows'; import { serviceConfig } from './windowsService.js'; // Create a new service object diff --git a/windowsService-uninstall.ts b/windowsService-uninstall.ts index 18d5f5d2..1a4902c2 100644 --- a/windowsService-uninstall.ts +++ b/windowsService-uninstall.ts @@ -1,4 +1,4 @@ -/* eslint-disable unicorn/filename-case, @eslint-community/eslint-comments/disable-enable-pair */ +/* eslint-disable no-console, unicorn/filename-case, @eslint-community/eslint-comments/disable-enable-pair */ import { Service } from 'node-windows'