Skip to content

Commit ada55e0

Browse files
committed
chore: lint warnings
1 parent d053498 commit ada55e0

7 files changed

Lines changed: 8 additions & 16 deletions

src/ui/scan/printConsolelogWarning.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { EnvUsage, VariableUsages } from '../../config/types.js';
22
import { normalizePath } from '../../core/helpers/normalizePath.js';
3-
import { label, warning, error, dim, divider, header, value } from '../theme.js';
3+
import { label, warning, error, dim, divider, header } from '../theme.js';
44

55
/**
66
* Print environment variables that were logged using console.log / warn / error.

src/ui/scan/printHealthScore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { accent, warning, error, divider, header, dim, value } from '../theme.js';
1+
import { accent, warning, error, divider, header} from '../theme.js';
22
import chalk from 'chalk';
33

44
/**

src/ui/scan/printInconsistentNamingWarning.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { InconsistentNamingWarning } from '../../config/types.js';
22
import {
33
label,
4-
value,
54
warning,
65
error,
76
divider,
@@ -17,7 +16,7 @@ import {
1716
*/
1817
export function printInconsistentNamingWarning(
1918
warnings: InconsistentNamingWarning[],
20-
strict = false,
19+
strict: boolean = false,
2120
): void {
2221
if (warnings.length === 0) return;
2322

src/ui/scan/printMissing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function printMissing(
4040
}
4141
}
4242

43-
for (const [file, items] of byFile) {
43+
for (const [, items] of byFile) {
4444
for (const { variable, usage } of items) {
4545
console.log(`${label(variable.padEnd(26))}${error(`${normalizePath(usage.file)}:${usage.line}`)}`);
4646
}

src/ui/scan/printSecrets.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import type { SecretFinding } from '../../core/security/secretDetectors.js';
22
import { normalizePath } from '../../core/helpers/normalizePath.js';
3-
import {
4-
label,
5-
accent,
6-
warning,
7-
error,
8-
divider,
9-
header,
10-
} from '../theme.js';
3+
import { label, accent, warning, error, divider, header } from '../theme.js';
114

125
/**
136
* Get the color function for the severity level.
@@ -53,7 +46,7 @@ export function printSecrets(secrets: SecretFinding[], strict = false): void {
5346
byFile.get(f.file)!.push(f);
5447
}
5548

56-
for (const [file, findings] of byFile) {
49+
for (const [, findings] of byFile) {
5750
for (const f of findings) {
5851
const color = getSeverityColor(f.severity);
5952
console.log(

src/ui/scan/printUnused.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { label, value, warning, error, divider, header } from '../theme.js';
1+
import { label, warning, error, divider, header } from '../theme.js';
22

33
/**
44
* Print unused environment variables (defined in env but not used in code).

src/ui/scan/printUppercaseWarning.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { UppercaseWarning } from '../../config/types.js';
2-
import { label, value, error, divider, header, warning } from '../theme.js';
2+
import { label, error, divider, header, warning } from '../theme.js';
33

44
/**
55
* Print warnings for environment variable keys that are not uppercase.

0 commit comments

Comments
 (0)