A tool for parsing traffic on the jetstream and applying a moderation workstream based on regexp based rules

fix: resolve linting issues in checkProfiles.ts

- Removed unused imports (login, langs)
- Fixed unnecessary optional chain conditions
- Added void operator to floating promises for fire-and-forget operations
- Fixed template literal expressions by converting number to string
- Improved code quality and type safety

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

+15 -16
+15 -16
src/checkProfiles.ts
··· 1 - import { login } from './agent.js'; 2 - import { langs, PROFILE_CHECKS } from './constants.js'; 1 + import { PROFILE_CHECKS } from './constants.js'; 3 2 import logger from './logger.js'; 4 3 import { 5 4 createAccountReport, ··· 29 28 ); 30 29 31 30 if (checkProfiles?.language || checkProfiles?.language !== undefined) { 32 - if (!checkProfiles?.language.includes(lang)) { 31 + if (!checkProfiles.language.includes(lang)) { 33 32 return; 34 33 } 35 34 } ··· 54 53 } 55 54 56 55 if (checkProfiles.toLabel) { 57 - createAccountLabel( 56 + void createAccountLabel( 58 57 did, 59 58 checkProfiles.label, 60 - `${time}: ${checkProfiles.comment} - ${displayName} - ${description}`, 59 + `${time.toString()}: ${checkProfiles.comment} - ${displayName} - ${description}`, 61 60 ); 62 61 logger.info( 63 62 `[CHECKDESCRIPTION]: Labeling ${did} for ${checkProfiles.label}`, ··· 65 64 } 66 65 67 66 if (checkProfiles.reportAcct) { 68 - createAccountReport( 67 + void createAccountReport( 69 68 did, 70 - `${time}: ${checkProfiles.comment} - ${displayName} - ${description}`, 69 + `${time.toString()}: ${checkProfiles.comment} - ${displayName} - ${description}`, 71 70 ); 72 71 logger.info( 73 72 `[CHECKDESCRIPTION]: Reporting ${did} for ${checkProfiles.label}`, ··· 75 74 } 76 75 77 76 if (checkProfiles.commentAcct) { 78 - createAccountComment( 77 + void createAccountComment( 79 78 did, 80 - `${time}: ${checkProfiles.comment} - ${displayName} - ${description}`, 79 + `${time.toString()}: ${checkProfiles.comment} - ${displayName} - ${description}`, 81 80 ); 82 81 logger.info( 83 82 `[CHECKDESCRIPTION]: Commenting on ${did} for ${checkProfiles.label}`, ··· 115 114 ); 116 115 117 116 if (checkProfiles?.language || checkProfiles?.language !== undefined) { 118 - if (!checkProfiles?.language.includes(lang)) { 117 + if (!checkProfiles.language.includes(lang)) { 119 118 return; 120 119 } 121 120 } ··· 140 139 } 141 140 142 141 if (checkProfiles.toLabel) { 143 - createAccountLabel( 142 + void createAccountLabel( 144 143 did, 145 144 checkProfiles.label, 146 - `${time}: ${checkProfiles.comment} - ${displayName} - ${description}`, 145 + `${time.toString()}: ${checkProfiles.comment} - ${displayName} - ${description}`, 147 146 ); 148 147 logger.info( 149 148 `[CHECKDISPLAYNAME]: Labeling ${did} for ${checkProfiles.label}`, ··· 151 150 } 152 151 153 152 if (checkProfiles.reportAcct) { 154 - createAccountReport( 153 + void createAccountReport( 155 154 did, 156 - `${time}: ${checkProfiles.comment} - ${displayName} - ${description}`, 155 + `${time.toString()}: ${checkProfiles.comment} - ${displayName} - ${description}`, 157 156 ); 158 157 logger.info( 159 158 `[CHECKDISPLAYNAME]: Reporting ${did} for ${checkProfiles.label}`, ··· 161 160 } 162 161 163 162 if (checkProfiles.commentAcct) { 164 - createAccountComment( 163 + void createAccountComment( 165 164 did, 166 - `${time}: ${checkProfiles.comment} - ${displayName} - ${description}`, 165 + `${time.toString()}: ${checkProfiles.comment} - ${displayName} - ${description}`, 167 166 ); 168 167 logger.info( 169 168 `[CHECKDISPLAYNAME]: Commenting on ${did} for ${checkProfiles.label}`,