🧹 chore(/config/): add tsconfig.json & linting (#2680)

This commit is contained in:
Danny Avila 2024-05-12 16:24:13 -04:00 committed by GitHub
parent bcdddaed72
commit c83d9d61d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 187 additions and 141 deletions

View file

@ -6,11 +6,15 @@ async function scanDirectory(baseFilePath: string, languagesDir: string) {
const files = fs.readdirSync(languagesDir);
for (const file of files) {
const ext = path.extname(file);
if (ext !== '.ts' && ext !== '.tsx') continue;
if (ext !== '.ts' && ext !== '.tsx') {
continue;
}
const compareFilePath = path.resolve(languagesDir, file);
if (compareFilePath === baseFilePath) continue;
if (compareFilePath === baseFilePath) {
continue;
}
await main(baseFilePath, compareFilePath);
}
}