Skip to content

Commit 01af91c

Browse files
committed
chore: use @openally/config.typescript
1 parent 73a661b commit 01af91c

File tree

6 files changed

+9
-19
lines changed

6 files changed

+9
-19
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"homepage": "https://github.com/dashlog/core#readme",
2929
"devDependencies": {
3030
"@openally/config.eslint": "^2.1.0",
31+
"@openally/config.typescript": "^1.0.3",
3132
"@types/node": "^22.0.0",
3233
"c8": "^10.1.2",
3334
"glob": "^11.0.0",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Import Internal Dependencies
22
import Github from "./services/github.js";
33
import * as plugins from "./plugins/index.js";
4-
import { DashlogRepository } from "./services/repository.js";
4+
import { type DashlogRepository } from "./services/repository.js";
55

66
export type DashlogAllPlugins =
77
plugins.nodesecure.NodesecurePlugin &
@@ -39,4 +39,4 @@ export async function fetchOrgMetadata<T extends DashlogPlugins>(
3939
};
4040
}
4141

42-
export { DashlogRepository };
42+
export { type DashlogRepository };

src/plugins/nodesecure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as scanner from "@nodesecure/scanner";
33
import { Mutex } from "@openally/mutex";
44

55
// Import Internal Dependencies
6-
import { DashlogRepository } from "../services/repository.js";
6+
import { type DashlogRepository } from "../services/repository.js";
77

88
// CONSTANTS
99
const kScannerLock = new Mutex({ concurrency: 5 });

src/plugins/scorecard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import * as scorecard from "@nodesecure/ossf-scorecard-sdk";
33

44
// Import Internal Dependencies
5-
import { DashlogRepository } from "../services/repository.js";
5+
import { type DashlogRepository } from "../services/repository.js";
66

77
export type ScorecardPlugin = {
88
scorecard?: scorecard.ScorecardResult | null;

src/services/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as Octokit from "@octokit/types";
44
import { fetchLazy } from "@dashlog/fetch-github-repositories";
55

66
// Import Internal Dependencies
7-
import GithubRepository, { DashlogRepository } from "./repository.js";
7+
import GithubRepository, { type DashlogRepository } from "./repository.js";
88

99
export default class Github {
1010
public orgName: string;
@@ -60,6 +60,6 @@ export default class Github {
6060

6161
return results
6262
.filter((promise) => promise.status === "fulfilled" && promise.value !== null)
63-
.map((promise: PromiseFulfilledResult<DashlogRepository>) => promise.value);
63+
.map((promise) => (promise as PromiseFulfilledResult<DashlogRepository>).value);
6464
}
6565
}

tsconfig.json

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
{
2+
"extends": "@openally/config.typescript/esm",
23
"compilerOptions": {
3-
"declaration": true,
4-
"strictNullChecks": true,
5-
"skipLibCheck": true,
6-
"target": "ES2020",
74
"outDir": "dist",
8-
"module": "ES2020",
9-
"moduleResolution": "node",
10-
"esModuleInterop": true,
11-
"resolveJsonModule": true,
12-
"skipDefaultLibCheck": true,
13-
"forceConsistentCasingInFileNames": true,
14-
"sourceMap": true,
15-
"rootDir": "./src",
16-
"types": ["node"]
5+
"rootDir": "./src"
176
},
187
"include": ["src"],
198
"exclude": ["node_modules", "dist"]

0 commit comments

Comments
 (0)