Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Niranjan Jayakar committed Sep 22, 2020
1 parent cb7383b commit c2a8405
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/@aws-cdk/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@
"construct-interface-extends-iconstruct:@aws-cdk/core.ICustomResourceProvider",
"props-physical-name:@aws-cdk/core.CustomResourceProps",
"integ-return-type:@aws-cdk/core.IStackSynthesizer.bind",
"props-no-any:@aws-cdk/core.CfnJsonProps.value",
"base-construct-ctor:*"
"props-no-any:@aws-cdk/core.CfnJsonProps.value"
]
},
"scripts": {
Expand Down
7 changes: 5 additions & 2 deletions packages/awslint/bin/awslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,17 @@ function mergeOptions(dest: any, pkg?: any) {
}

function flags(options: string[]): Flag[] {
const valid = Object.values(Flag).map(v => v.toString());
const values = Object.values(Flag);
const valid = values.map(v => v.toString());

const f = new Set<Flag>();
options.forEach(o => {
if (!valid.includes(o)) {
throw new Error(`Invalid flag "${o}"`);
}
f.add(Flag.USE_CONSTRUCTS_MODULE); //FIXME
for (const v of values) {
if (v === o) { f.add(v); }
}
});
return Array.from(f);
}
Expand Down

0 comments on commit c2a8405

Please sign in to comment.