Skip to content

Commit 293be5e

Browse files
committed
chore: linting issues
1 parent eea39f8 commit 293be5e

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
lines changed

src/command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import API from '@hackmd/api'
1+
import {API} from '@hackmd/api'
22
import {Command, ux} from '@oclif/core'
33

44
import config from './config'

src/commands/notes/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
notePermission,
1515
noteTitle,
1616
} from '../../flags'
17-
import openEditor from '../../open-editor'
17+
import {openEditor} from '../../open-editor'
1818
import {safeStdinRead, temporaryMD} from '../../utils'
1919

2020
export default class CreateCommand extends HackMDCommand {

src/commands/team-notes/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import HackMDCommand from '../../command'
66
import {
77
commentPermission, editor, noteContent, notePermission, noteTitle, teamPath,
88
} from '../../flags'
9-
import openEditor from '../../open-editor'
9+
import {openEditor} from '../../open-editor'
1010
import {safeStdinRead, temporaryMD} from '../../utils'
1111

1212
export default class Create extends HackMDCommand {

test/config.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('Config test', () => {
2727
this.configFilePath = setupConfigFile()
2828
})
2929

30+
// eslint-disable-next-line mocha/no-skipped-tests
3031
it.skip('should throw no config error if config.json not found and no hackmdAPIEndpointURL set in env', function () {
3132
expect(requireConfig)
3233
.to.throw(new RegExp(`Configuration file at ${this.configFilePath} not readable`))
@@ -46,6 +47,7 @@ describe('Config test', () => {
4647
expect(config.hackmdAPIEndpointURL).to.eq('https://api.hackmd.io/v1')
4748
})
4849

50+
// eslint-disable-next-line mocha/no-skipped-tests
4951
it.skip('should throw error if no access token is set', function () {
5052
fs.writeFileSync(this.configFilePath, '{}', 'utf8')
5153

test/integration/login.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import API from '@hackmd/api'
1+
import {API} from '@hackmd/api'
22
import {expect} from 'chai'
33

44
import {

test/integration/notes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import API from '@hackmd/api'
1+
import {API} from '@hackmd/api'
22
import {CommentPermissionType, NotePermissionRole} from '@hackmd/api/dist/type'
33
import {expect} from 'chai'
44

test/integration/whoami.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import API from '@hackmd/api'
1+
import {API} from '@hackmd/api'
22
import {expect} from 'chai'
33

44
import {

0 commit comments

Comments
 (0)