Format all files with prettier: npm run format
This commit is contained in:
2
vendor/integration/utils/loadConfig.ts
vendored
2
vendor/integration/utils/loadConfig.ts
vendored
@@ -4,7 +4,7 @@ import yaml from 'js-yaml';
|
||||
const loadConfig = async (configPathOrData: string | object) => {
|
||||
if (typeof configPathOrData === 'string') {
|
||||
const content = fs.readFileSync(configPathOrData, 'utf8');
|
||||
if (configPathOrData.endsWith(".yaml") || configPathOrData.endsWith(".yml")) {
|
||||
if (configPathOrData.endsWith('.yaml') || configPathOrData.endsWith('.yml')) {
|
||||
return yaml.load(content);
|
||||
}
|
||||
return content;
|
||||
|
Reference in New Issue
Block a user