Skip to content

Commit ca628e9

Browse files
committed
eslinting
1 parent 0dbc016 commit ca628e9

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/commands/content-type/compare-remote.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ export default class CompareRemoteCommand extends Command {
2929
char: 'c',
3030
description: 'Content Type UID',
3131
required: true,
32-
})
32+
}),
3333
}
3434

3535
async run() {
3636
try {
3737
const {flags} = this.parse(CompareRemoteCommand)
38-
this.setup({ 'token-alias': undefined, 'stack': flags['origin-stack'] })
38+
this.setup({'token-alias': undefined, stack: flags['origin-stack']})
3939

4040
cli.action.start(Command.RequestDataMessage)
41-
41+
4242
const originStackApi = flags['origin-stack'] as string
4343
const remoteStackApi = flags['remote-stack'] as string
4444

src/commands/content-type/compare.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ export default class CompareCommand extends Command {
3838
char: 'l',
3939
description: 'Content Type version, i.e. prev version',
4040
required: false,
41-
dependsOn: ['right']
41+
dependsOn: ['right'],
4242
}),
4343

4444
right: flags.integer({
4545
char: 'r',
4646
description: 'Content Type version, i.e. later version',
4747
required: false,
48-
dependsOn: ['left']
48+
dependsOn: ['left'],
4949
}),
5050
}
5151

@@ -55,13 +55,13 @@ export default class CompareCommand extends Command {
5555
this.setup(flags)
5656

5757
cli.action.start(Command.RequestDataMessage)
58-
58+
5959
if (!flags.left) {
60-
const discovery = await this.client.getContentType(this.apiKey, flags['content-type'], false);
61-
const version = discovery.content_type._version;
60+
const discovery = await this.client.getContentType(this.apiKey, flags['content-type'], false)
61+
const version = discovery.content_type._version
6262

63-
flags.left = version;
64-
flags.right = version > 1 ? version - 1 : version;
63+
flags.left = version
64+
flags.right = version > 1 ? version - 1 : version
6565

6666
this.log(`Comparing versions: ${flags.left} <-> ${flags.right}.`)
6767
}

tests/audit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ describe('audit command', () => {
22
test('result', () => {
33
expect(true).toBe(true)
44
})
5-
})
5+
})

0 commit comments

Comments
 (0)