run prettier

Signed-off-by: Lucas De Souza <lucas.desouza@aa.com>
This commit is contained in:
Lucas De Souza
2022-11-21 15:40:56 -06:00
parent c13544e033
commit 250b6f04f8
3 changed files with 15 additions and 15 deletions
+6 -6
View File
@@ -212,12 +212,12 @@ catalog:
pullRequestBranchName: backstage-integration
rules:
- allow:
- Component
- API
- Resource
- System
- Domain
- Location
- Component
- API
- Resource
- System
- Domain
- Location
processors:
ldapOrg:
@@ -225,7 +225,7 @@ describe('DefaultCatalogRulesEnforcer', () => {
const enforcer = DefaultCatalogRulesEnforcer.fromConfig(
new ConfigReader({
catalog: {
rules: [{ allow: ['Component'], locations: [{type: 'url', match: 'https://github.com/b/*'}] }],
rules: [{ allow: ['Component'], locations: [{ type: 'url', match: 'https://github.com/b/*' }] }],
},
}),
);
@@ -99,13 +99,13 @@ export class DefaultCatalogRulesEnforcer implements CatalogRulesEnforcer {
};
const locConf = ruleConfig.getOptionalConfigArray('locations');
if (locConf)
rule.locations = locConf.map( locationConfig => ({
match: locationConfig.getOptionalString('match'),
type: locationConfig.getString('type'),
target: locationConfig.getOptionalString('target')
}))
if (locConf)
rule.locations = locConf.map(locationConfig => ({
match: locationConfig.getOptionalString('match'),
type: locationConfig.getString('type'),
target: locationConfig.getOptionalString('target')
}))
return rule;
});
rules.push(...globalRules);
@@ -135,7 +135,7 @@ export class DefaultCatalogRulesEnforcer implements CatalogRulesEnforcer {
return new DefaultCatalogRulesEnforcer(rules);
}
constructor(private readonly rules: CatalogRule[]) {}
constructor(private readonly rules: CatalogRule[]) { }
/**
* Checks whether a specific entity/location combination is allowed