refactor: remove namespace imports (#969)

* refactor: remove namespace imports

* refactor: use named fs imports

* refactor(app): replace path and fs namespace imports

* format

* format
This commit is contained in:
Justin Hernandez
2025-08-27 20:59:26 -07:00
committed by GitHub
parent dba8ee1951
commit fc472915e6
37 changed files with 385 additions and 378 deletions

View File

@@ -1,6 +1,6 @@
import { flag } from 'country-emoji';
import getCountryISO2 from 'country-iso-3-to-2';
import fs from 'fs';
import { writeFileSync } from 'fs';
import path from 'path';
import { countryCodes } from '../constants/constants.js';
@@ -16,7 +16,7 @@ try {
}));
const outputPath = path.join(__dirname, './countryOptions.json');
fs.writeFileSync(outputPath, JSON.stringify(countryOptions, null, 2));
writeFileSync(outputPath, JSON.stringify(countryOptions, null, 2));
console.log(`Generated country options at ${outputPath}`);
} catch (error) {