Skip to content

Commit e7f1425

Browse files
James TsaiJames Tsai
authored andcommitted
fix: run linter
1 parent e90830b commit e7f1425

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"repository": "hackmdio/hackmd-cli",
7070
"scripts": {
7171
"postpack": "rm -f oclif.manifest.json",
72-
"posttest": "tslint -p test -t stylish --fix",
72+
"posttest": "tslint -p test -t stylish",
7373
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest",
7474
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
7575
"version": "oclif-dev readme && git add README.md"

src/commands/notes/create.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommentPermissionType, CreateNoteOptions, NotePermissionRole } from '@hackmd/api/dist/type'
1+
import {CommentPermissionType, CreateNoteOptions, NotePermissionRole} from '@hackmd/api/dist/type'
22
import {CliUx, Command, Flags} from '@oclif/core'
33

44
import {APIClient} from '../../api'
@@ -8,14 +8,14 @@ export default class Create extends Command {
88
static description = 'Create a note'
99

1010
static examples = [
11-
`notes create --content='# A new note' --readPermission=owner --writePermission=owner --commentPermission=disabled`,
11+
"notes create --content='# A new note' --readPermission=owner --writePermission=owner --commentPermission=disabled",
1212

13-
`ID Title User Path Team Path
13+
`ID Title User Path Team Path
1414
────────────────────── ──────────────────────────────── ────────────────────── ────────
1515
raUuSTetT5uQbqQfLnz9lA A new note gvfz2UB5THiKABQJQnLs6Q null`,
1616

17-
`Or you can pipe content via Unix pipeline:`,
18-
`cat README.md | hackmd-cli notes create`
17+
'Or you can pipe content via Unix pipeline:',
18+
'cat README.md | hackmd-cli notes create'
1919
]
2020

2121
static flags = {

src/commands/team-notes/create.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommentPermissionType, CreateNoteOptions, NotePermissionRole } from '@hackmd/api/dist/type'
1+
import {CommentPermissionType, CreateNoteOptions, NotePermissionRole} from '@hackmd/api/dist/type'
22
import {CliUx, Command, Flags} from '@oclif/core'
33

44
import {APIClient} from '../../api'
@@ -13,8 +13,8 @@ ID Title User Path T
1313
────────────────────── ──────────────────────────────── ────────────────────── ────────
1414
raUuSTetT5uQbqQfLnz9lA A new note gvfz2UB5THiKABQJQnLs6Q null `,
1515

16-
`Or you can pipe content via Unix pipeline:`,
17-
`cat README.md | hackmd-cli notes create --teamPath=CLI-test`
16+
'Or you can pipe content via Unix pipeline:',
17+
'cat README.md | hackmd-cli notes create --teamPath=CLI-test'
1818
]
1919

2020
static flags = {

0 commit comments

Comments
 (0)