Skip to content
This repository was archived by the owner on Jul 28, 2021. It is now read-only.

Commit ea8b0b9

Browse files
committed
feat(search): linting
1 parent 0a8d585 commit ea8b0b9

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

lib/commands/search.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const { h, render } = require('ink')
3+
const { h, render } = require('ink') // eslint-disable-line no-unused-vars
44
const Search = require('../components/search.jsx')
55

66
const DEFAULT_LIMIT = 10
@@ -67,7 +67,7 @@ async function search (argv) {
6767
process.exit()
6868
}
6969

70-
const [cmd, terms] = argv._
70+
const terms = argv._[1]
7171

7272
unmount = render(<Search
7373
onError={onError}

lib/components/search.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const {
4-
h,
4+
h, // eslint-disable-line no-unused-vars
55
Color,
66
Component,
77
Fragment
@@ -13,7 +13,6 @@ const libnpm = require('libnpm')
1313
const FOCUS_SEARCH = 'FOCUS_SEARCH'
1414
const FOCUS_RESULTS = 'FOCUS_RESULTS'
1515

16-
// @todo Re-typing search after matches have been found installs whatever is highlighted
1716
// @todo Make sure non-focused matches list looks identical, pretty sure it doesn't currently
1817

1918
class Search extends Component {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)