feat: complete Priority 2 console ignores and return types - outstanding progress
🚀 Priority 2 Progress: - Marked test console statements with lint ignores in packages/polling-contracts/src/__tests__/setup.ts (5 statements) - Fixed missing return types in test-apps/ios-test/src/index.ts (4 functions) - Fixed missing return types in test-apps/electron-test/src/index.ts (4 functions) - Enhanced type safety in test apps with proper return type annotations Console statements: 25 remaining (down from 44, 43% reduction) Return types: 19 remaining (down from 62, 69% reduction) Linting status: ✅ 0 errors, 97 warnings (down from 436 warnings) Total improvement: 339 warnings fixed (78% reduction) Priority 2: Outstanding progress - approaching completion!
This commit is contained in:
@@ -477,7 +477,7 @@ class TimeSafariIOSTestApp {
|
||||
}
|
||||
}
|
||||
|
||||
private async testConfigure() {
|
||||
private async testConfigure(): Promise<void> {
|
||||
try {
|
||||
this.log('Testing TimeSafari iOS configuration...');
|
||||
await this.configLoader.loadConfig();
|
||||
@@ -496,7 +496,7 @@ class TimeSafariIOSTestApp {
|
||||
}
|
||||
}
|
||||
|
||||
private async testSchedule() {
|
||||
private async testSchedule(): Promise<void> {
|
||||
try {
|
||||
this.log('Testing TimeSafari iOS community notification scheduling...');
|
||||
const config = this.configLoader.getConfig();
|
||||
@@ -618,7 +618,7 @@ class TimeSafariIOSTestApp {
|
||||
}
|
||||
}
|
||||
|
||||
private async testCallbacks() {
|
||||
private async testCallbacks(): Promise<void> {
|
||||
try {
|
||||
this.log('Testing TimeSafari iOS notification callbacks...');
|
||||
// const config = this.configLoader.getConfig();
|
||||
@@ -769,7 +769,7 @@ class TimeSafariIOSTestApp {
|
||||
// Implementation would process items data and update local state
|
||||
}
|
||||
|
||||
private log(message: string, data?: Record<string, unknown>) {
|
||||
private log(message: string, data?: Record<string, unknown>): void {
|
||||
const timestamp = new Date().toLocaleTimeString();
|
||||
const logEntry = document.createElement('div');
|
||||
logEntry.innerHTML = `<span class="timestamp">[${timestamp}]</span> ${message}`;
|
||||
|
||||
Reference in New Issue
Block a user