8000 style: follow standard · progfay/scrapbox-parser@cd9e93f · GitHub
[go: up one dir, main page]

Skip to content

Commit cd9e93f

Browse files
author
progfay
committed
style: follow standard
- occur `no-unused-vars` error and change eslint rule - typescript-eslint/typescript-eslint#46 (comment)
1 parent 1b11759 commit cd9e93f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ module.exports = {
1616
},
1717
'plugins': ['@typescript-eslint'],
1818
'rules': {
19+
'@typescript-eslint/no-unused-vars': [2, { args: 'none' }]
1920
}
2021
}

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { PageType, LineType } from './types'
2+
13
const parse = (input: string): PageType => {
24
const _lines: Array<string> = input.trim().split('\n')
35
const title: string = _lines.shift() || 'Untitled'

0 commit comments

Comments
 (0)
0