8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b11759 commit cd9e93fCopy full SHA for cd9e93f
.eslintrc.js
@@ -16,5 +16,6 @@ module.exports = {
16
},
17
'plugins': ['@typescript-eslint'],
18
'rules': {
19
+ '@typescript-eslint/no-unused-vars': [2, { args: 'none' }]
20
}
21
src/index.ts
@@ -1,3 +1,5 @@
1
+import { PageType, LineType } from './types'
2
+
3
const parse = (input: string): PageType => {
4
const _lines: Array<string> = input.trim().split('\n')
5
const title: string = _lines.shift() || 'Untitled'
0 commit comments