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

@@ -4,7 +4,7 @@ import { expect } from 'chai';
import CalculateLuckyLevels, {
CalculateSevenDelta,
CountSevens,
} from '../../src/Disp/HelperFunctions/CalculateLuckyLevels';
} from '../../src/Disp/HelperFunctions/CalculateLuckyLevels.js';
describe('CountSevens', () => {
const examples = [
@@ -51,6 +51,7 @@ describe('CalculateLuckyLevels', () => {
{ input: 77777, luckyDigit: 77777, luckyNumber: 77777, luckyPayout: 77777 },
{ input: 799999, luckyDigit: 799999, luckyNumber: 800077, luckyPayout: 807777 },
{ input: 999999, luckyDigit: 1000007, luckyNumber: 1000077, luckyPayout: 1007777 },
/* eslint-disable no-loss-of-precision */
{
input: 123456789123456789,
luckyDigit: 123456789123456789,
@@ -63,6 +64,7 @@ describe('CalculateLuckyLevels', () => {
luckyNumber: 8888888888889770000,
luckyPayout: 8888888888977770000,
},
/* eslint-enable no-loss-of-precision */
];
examples.forEach((example) => {