mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
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:
@@ -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']);
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user