Skip to content

Commit 44ac795

Browse files
authored
chore: update @openally/config.eslint (1.3.0 to 2.1.0) (#447)
chore: update @openally/config.eslint to v2.x
1 parent 022e4b1 commit 44ac795

File tree

6 files changed

+86
-86
lines changed

6 files changed

+86
-86
lines changed

bin/commands/execute.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function execute(options: ExecuteOptions = {}) {
2929
const { debug: debugMode } = options;
3030

3131
if (debugMode) {
32-
console.log(kleur.bgMagenta().bold(` > Debug mode enabled \n`));
32+
console.log(kleur.bgMagenta().bold(" > Debug mode enabled \n"));
3333
}
3434

3535
const [configResult] = await Promise.all([
@@ -83,7 +83,7 @@ function init() {
8383
}
8484

8585
function debug(obj: any) {
86-
const filePath = path.join(CONSTANTS.DIRS.REPORTS, `debug-pkg-repo.txt`);
86+
const filePath = path.join(CONSTANTS.DIRS.REPORTS, "debug-pkg-repo.txt");
8787
writeFileSync(filePath, inspect(obj, { showHidden: true, depth: null }), "utf8");
8888
}
8989

package.json

Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
1-
{
2-
"name": "@nodesecure/report",
3-
"version": "3.0.0",
4-
"description": "NodeSecure HTML & PDF graphic security report",
5-
"main": "./dist/src/index.js",
6-
"type": "module",
7-
"bin": {
8-
"nreport": "./dist/bin/index.js"
9-
},
10-
"exports": {
11-
".": {
12-
"import": "./dist/src/index.js"
13-
}
14-
},
15-
"scripts": {
16-
"build": "tsc && npm run build:views && npm run build:public",
17-
"build:views": "rimraf dist/views && cp -r views dist/views",
18-
"build:public": "rimraf dist/public && cp -r public dist/public",
19-
"lint": "eslint src test bin scripts",
20-
"test-only": "glob -c \"tsx --test-reporter=spec --test\" \"./test/**/*.spec.ts\"",
21-
"test": "c8 --all --src ./src -r html npm run test-only",
22-
"preview:light": "tsx --no-warnings ./scripts/preview.js --theme light",
23-
"preview:dark": "tsx --no-warnings ./scripts/preview.js --theme dark",
24-
"prepublishOnly": "npm run build"
25-
},
26-
"files": [
27-
"dist"
28-
],
29-
"repository": {
30-
"type": "git",
31-
"url": "git+https://github.com/NodeSecure/report.git"
32-
},
33-
"keywords": [
34-
"security",
35-
"report",
36-
"nodesecure",
37-
"pdf",
38-
"html",
39-
"chart"
40-
],
41-
"author": "NodeSecure",
42-
"license": "MIT",
43-
"bugs": {
44-
"url": "https://github.com/NodeSecure/report/issues"
45-
},
46-
"homepage": "https://github.com/NodeSecure/report#readme",
47-
"dependencies": {
48-
"@nodesecure/flags": "^2.4.0",
49-
"@nodesecure/ossf-scorecard-sdk": "^3.2.1",
50-
"@nodesecure/rc": "^4.0.0",
51-
"@nodesecure/scanner": "^6.0.2",
52-
"@nodesecure/utils": "^2.2.0",
53-
"@openally/mutex": "^1.0.0",
54-
"@topcli/spinner": "^2.1.2",
55-
"esbuild": "^0.25.0",
56-
"filenamify": "^6.0.0",
57-
"kleur": "^4.1.5",
58-
"puppeteer": "24.3.1",
59-
"sade": "^1.8.1",
60-
"zup": "0.0.2"
61-
},
62-
"devDependencies": {
63-
"@openally/config.eslint": "^1.3.0",
64-
"@openally/config.typescript": "^1.0.3",
65-
"@types/node": "^22.2.0",
66-
"c8": "^10.1.2",
67-
"glob": "^11.0.0",
68-
"open": "^10.1.0",
69-
"rimraf": "^6.0.1",
70-
"tsx": "^4.19.2",
71-
"typescript": "^5.7.2"
72-
},
73-
"engines": {
74-
"node": ">=20"
75-
}
76-
}
1+
{
2+
"name": "@nodesecure/report",
3+
"version": "3.0.0",
4+
"description": "NodeSecure HTML & PDF graphic security report",
5+
"main": "./dist/src/index.js",
6+
"type": "module",
7+
"bin": {
8+
"nreport": "./dist/bin/index.js"
9+
},
10+
"exports": {
11+
".": {
12+
"import": "./dist/src/index.js"
13+
}
14+
},
15+
"scripts": {
16+
"build": "tsc && npm run build:views && npm run build:public",
17+
"build:views": "rimraf dist/views && cp -r views dist/views",
18+
"build:public": "rimraf dist/public && cp -r public dist/public",
19+
"lint": "eslint src test bin scripts",
20+
"test-only": "glob -c \"tsx --test-reporter=spec --test\" \"./test/**/*.spec.ts\"",
21+
"test": "c8 --all --src ./src -r html npm run test-only",
22+
"preview:light": "tsx --no-warnings ./scripts/preview.js --theme light",
23+
"preview:dark": "tsx --no-warnings ./scripts/preview.js --theme dark",
24+
"prepublishOnly": "npm run build"
25+
},
26+
"files": [
27+
"dist"
28+
],
29+
"repository": {
30+
"type": "git",
31+
"url": "git+https://github.com/NodeSecure/report.git"
32+
},
33+
"keywords": [
34+
"security",
35+
"report",
36+
"nodesecure",
37+
"pdf",
38+
"html",
39+
"chart"
40+
],
41+
"author": "NodeSecure",
42+
"license": "MIT",
43+
"bugs": {
44+
"url": "https://github.com/NodeSecure/report/issues"
45+
},
46+
"homepage": "https://github.com/NodeSecure/report#readme",
47+
"dependencies": {
48+
"@nodesecure/flags": "^2.4.0",
49+
"@nodesecure/ossf-scorecard-sdk": "^3.2.1",
50+
"@nodesecure/rc": "^4.0.0",
51+
"@nodesecure/scanner": "^6.0.2",
52+
"@nodesecure/utils": "^2.2.0",
53+
"@openally/mutex": "^1.0.0",
54+
"@topcli/spinner": "^2.1.2",
55+
"esbuild": "^0.25.0",
56+
"filenamify": "^6.0.0",
57+
"kleur": "^4.1.5",
58+
"puppeteer": "24.3.1",
59+
"sade": "^1.8.1",
60+
"zup": "0.0.2"
61+
},
62+
"devDependencies": {
63+
"@openally/config.eslint": "^2.1.0",
64+
"@openally/config.typescript": "^1.0.3",
65+
"@types/node": "^22.2.0",
66+
"c8": "^10.1.2",
67+
"glob": "^11.0.0",
68+
"open": "^10.1.0",
69+
"rimraf": "^6.0.1",
70+
"tsx": "^4.19.2",
71+
"typescript": "^5.7.2"
72+
},
73+
"engines": {
74+
"node": ">=20"
75+
}
76+
}

scripts/preview.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import path from "node:path";
33
import { mkdirSync, rmSync, writeFileSync } from "node:fs";
44
import { parseArgs } from "node:util";
55

6+
// Import Third-party Dependencies
7+
import open from "open";
8+
69
// Import Internal Dependencies
710
import { HTMLTemplateGenerator } from "../src/reporting/template.js";
811
import { buildFrontAssets } from "../src/reporting/html.js";
912

10-
// Import Third-party Dependencies
11-
import open from "open";
12-
1313
// CONSTANTS
1414
const kPreviewDir = path.join(import.meta.dirname, "..", "preview");
1515

src/analysis/extractScannerData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import * as localStorage from "../localStorage.js";
1515
// CONSTANTS
1616
const kFlagsList = Object.values(getManifest());
1717
const kWantedFlags = getFlags();
18-
const kScorecardVisualizerUrl = `https://kooltheba.github.io/openssf-scorecard-api-visualizer/#/projects`;
19-
const kNodeVisualizerUrl = `https://nodejs.org/dist/latest/docs/api`;
18+
const kScorecardVisualizerUrl = "https://kooltheba.github.io/openssf-scorecard-api-visualizer/#/projects";
19+
const kNodeVisualizerUrl = "https://nodejs.org/dist/latest/docs/api";
2020

2121
function splitPackageWithOrg(pkg: string) {
2222
// reverse here so if there is no orgPrefix, its value will be undefined

src/analysis/scanner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Import Node.js Dependencies
2-
import path from "path";
3-
import fs from "fs/promises";
2+
import path from "node:path";
3+
import fs from "node:fs/promises";
44

55
// Import Third-party Dependencies
66
import { Mutex } from "@openally/mutex";

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import path from "node:path";
33
import { fileURLToPath } from "node:url";
44

5-
// Import Node.js Dependencies
5+
// Import Third-party Dependencies
66
import * as rc from "@nodesecure/rc";
77

88
// CONSTANTS

0 commit comments

Comments
 (0)