mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-20 01:18:10 +01:00
🧹 chore(/config/): add tsconfig.json & linting (#2680)
This commit is contained in:
parent
bcdddaed72
commit
c83d9d61d4
10 changed files with 187 additions and 141 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue