Library updates and lint fixes (#8099)

* Minor updates only
* Added explicit radix parameter (10) to all Number.parseInt() calls throughout the codebase (new lint rule)
* Updated several @ts-ignore comments to @ts-expect-error for better TypeScript practices (new lint rule)
* Removed unnecessary @ts-ignore comments in some mode files (ditto)
* Used "none return" based arrow functions for some map stuff
* Replaced a `map()` call that didn't return anything to a for() loop
* Fixed up some cypress stuff, noting work for the future
This commit is contained in:
Matt Godbolt
2025-09-12 14:23:49 -05:00
committed by GitHub
parent 847ea95559
commit f824efe73e
74 changed files with 3344 additions and 1996 deletions

View File

@@ -215,7 +215,9 @@ describe('Config Module', () => {
beforeEach(() => {
// Reset and recreate test languages before each test
Object.keys(mockLanguages).forEach(key => delete mockLanguages[key as LanguageKey]);
Object.keys(mockLanguages).forEach(key => {
delete mockLanguages[key as LanguageKey];
});
mockLanguages['c++'] = createMockLanguage('c++', 'C++', ['cpp']);
mockLanguages.c = createMockLanguage('c', 'C', ['c99', 'c11']);

View File

@@ -135,7 +135,7 @@ describe('javap parsing', () => {
return {
text: match[2],
source: {
line: Number.parseInt(match[1]),
line: Number.parseInt(match[1], 10),
file: null,
},
};