Update dependencies and remove unneeded things. This allows building on node v22. Also rely on configs for eslint/prettier so CI and command line runs are guaranteed to be consistent.

This commit is contained in:
Kevin Radloff
2025-02-13 08:07:13 -05:00
committed by Daniël van Noord
parent 9e98208c19
commit a1aaa3de8f
145 changed files with 3775 additions and 5909 deletions

View File

@@ -1,5 +1,5 @@
import { ClickTimes, CookieTimes } from '../../Disp/VariablesAndData';
import FillCMDCache from '../FillCMDCache';
import { ClickTimes, CookieTimes } from '../../Disp/VariablesAndData.js';
import FillCMDCache from '../FillCMDCache.js';
import {
CacheAverageClicks,
CacheAverageCPS,
@@ -23,7 +23,7 @@ import {
CookiesDiff,
WrinkDiff,
WrinkFattestDiff,
} from '../VariablesAndData';
} from '../VariablesAndData.js';
/**
* This functions caches two variables related average CPS and Clicks
@@ -89,7 +89,6 @@ export default function CacheAvgCPS() {
CacheAverageGainBank + CacheAverageGainWrink + (choEgg ? CacheAverageGainChoEgg : 0);
} else CacheAvgCPSWithChoEgg = CacheAverageCPS;
// eslint-disable-next-line no-unused-vars
CacheAverageClicks = ClicksDiff.calcAverage(
ClickTimes[Game.mods.cookieMonsterFramework.saveData.cookieMonsterMod.settings.AvgClicksHist],
);