Skip to content

Commit 3fbe608

Browse files
Merge pull request #1250 from sosy-lab/typescript-migration/migration/utils-folder-new
Convert and refactor utility modules to TypeScript
2 parents 5c6160a + 37b56d2 commit 3fbe608

13 files changed

Lines changed: 14398 additions & 13565 deletions

File tree

benchexec/tablegenerator/react-table/MIGRATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ changes and improves the reproducibility of the migration process.
166166

167167
**Order (bottom-up):**
168168

169-
- [ ] `src/utils/` (utils.js, filters.js, stats.js, plot.js)
169+
- [x] `src/utils/` (utils.js, filters.js, stats.js, plot.js)
170170
- [ ] `src/workers/` (workerDirector.js, dataUrls.js)
171171
- [ ] `src/components/` (leaf components → central components)
172172
- [ ] `src/components/FilterBox/`

benchexec/tablegenerator/react-table/build/main.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

benchexec/tablegenerator/react-table/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"@typescript-eslint/no-unused-vars": [
6565
"error",
6666
{
67+
"varsIgnorePattern": "^_",
6768
"argsIgnorePattern": "^_"
6869
}
6970
]

benchexec/tablegenerator/react-table/src/components/StatisticsTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
SelectColumnsButton,
2020
StandardColumnHeader,
2121
} from "./TableComponents";
22-
import { computeStats, statisticsRows } from "../utils/stats.js";
22+
import { computeStats, statisticsRows } from "../utils/stats.ts";
2323
import {
2424
determineColumnWidth,
2525
isNumericColumn,

benchexec/tablegenerator/react-table/src/components/TableComponents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// SPDX-License-Identifier: Apache-2.0
77

88
import React from "react";
9-
import { formatColumnTitle, getRunSetName } from "../utils/utils.js";
9+
import { formatColumnTitle, getRunSetName } from "../utils/utils.tsx";
1010

1111
export const SelectColumnsButton = ({ handler, ...other }) => (
1212
<span onClick={handler} title="" className="selectColumns" {...other}>

benchexec/tablegenerator/react-table/src/tests/StatsCalculation.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import StatisticsTable from "../components/StatisticsTable.js";
1010
import fs from "fs";
1111
import renderer from "react-test-renderer";
1212
import { getOverviewProps } from "./utils.js";
13-
import { computeStats, filterComputableStatistics } from "../utils/stats.js";
13+
import { computeStats, filterComputableStatistics } from "../utils/stats.ts";
1414
const testDir = "../test_integration/expected/";
1515

1616
fs.readdirSync(testDir)

0 commit comments

Comments
 (0)