Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Jul 21, 2020
1 parent b7b8d09 commit d326cb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/bin/auto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ try {

if (json.name.startsWith("@auto-canary")) {
moduleAlias.addAliases({
/** We want to rewrite all the imports for canary (ex: npm plugin requiring core) */
"@auto-it": (fromPath: string, request: string) =>
// We want to rewrite all the imports for canary (ex: npm plugin requiring core)
request.startsWith("@auto-it") &&
// but we also want to be able to require official plugins from a canary
!fromPath.endsWith("noop.js") &&
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export default class Git {
previews: ["symmetra-preview"],
request: { agent: this.options.agent },
throttle: {
/** Add a wait once rate limit is hit */
onRateLimit: (retryAfter: number, opts: ThrottleOpts) => {
this.logger.log.warn(
`Request quota exhausted for request ${opts.method} ${opts.url}`
Expand All @@ -147,8 +148,8 @@ export default class Git {
return true;
}
},
/** does not retry, only logs an error */
onAbuseLimit: (_: number, opts: ThrottleOpts) => {
// does not retry, only logs an error
this.logger.log.error(
`Went over abuse rate limit ${opts.method} ${opts.url}`
);
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ async function getLabel(label?: ILabelDefinition) {
releaseType: #{releaseType}
}`,
// @ts-ignore
/** Check if returned config is valid */
validate: (state: {
/** The result of the prompt */
values: ILabelDefinition;
Expand Down

0 comments on commit d326cb1

Please sign in to comment.