style: satisfy eslint

This commit is contained in:
Maddison Hellstrom 2019-03-10 10:20:49 -07:00
parent 525416f577
commit d649f71c02
1 changed files with 33 additions and 33 deletions

View File

@ -41,11 +41,11 @@ completions.al = {
// Arch Linux AUR
completions.au = {
alias: "au",
name: "AUR",
favicon: "https://aur.archlinux.org/images/favicon.ico",
search: "https://aur.archlinux.org/packages/?O=0&SeB=nd&outdated=&SB=v&SO=d&PP=100&do_Search=Go&K=",
compl: "https://aur.archlinux.org/rpc?type=suggest&arg=",
alias: "au",
name: "AUR",
favicon: "https://aur.archlinux.org/images/favicon.ico",
search: "https://aur.archlinux.org/packages/?O=0&SeB=nd&outdated=&SB=v&SO=d&PP=100&do_Search=Go&K=",
compl: "https://aur.archlinux.org/rpc?type=suggest&arg=",
}
completions.au.callback = (response) => {
@ -780,11 +780,11 @@ completions.gd.callback = response => JSON.parse(response.text).results.map((s)
// Gowalker
completions.gw = {
alias: "gw",
name: "gowalker",
alias: "gw",
name: "gowalker",
favicon: "https://gowalker.org/img/favicon.png",
search: "https://gowalker.org/search?auto_redirect=true&q=",
compl: "https://gowalker.org/search/json?q=",
search: "https://gowalker.org/search?auto_redirect=true&q=",
compl: "https://gowalker.org/search/json?q=",
}
completions.gw.callback = response => JSON.parse(response.text).results.map((s) => {
@ -801,11 +801,11 @@ completions.gw.callback = response => JSON.parse(response.text).results.map((s)
// Go-Search
completions.gs = {
alias: "gs",
name: "go-search",
alias: "gs",
name: "go-search",
favicon: "https://go-search.org/images/logo-16.png",
search: "http://go-search.org/search?q=",
compl: "http://go-search.org/api?action=search&q=",
search: "http://go-search.org/search?q=",
compl: "http://go-search.org/api?action=search&q=",
}
completions.gs.callback = response => JSON.parse(response.text).hits
@ -816,11 +816,11 @@ completions.gs.callback = response => JSON.parse(response.text).hits
// Hackage
completions.ha = {
alias: "ha",
name: "hackage",
alias: "ha",
name: "hackage",
favicon: "https://hackage.haskell.org/static/favicon.png",
search: "https://hackage.haskell.org/packages/search?terms=",
compl: "https://hackage.haskell.org/packages/search.json?terms=",
search: "https://hackage.haskell.org/packages/search?terms=",
compl: "https://hackage.haskell.org/packages/search.json?terms=",
}
completions.ha.callback = response => JSON.parse(response.text)
@ -828,12 +828,12 @@ completions.ha.callback = response => JSON.parse(response.text)
// Hoogle
completions.ho = {
alias: "ho",
name: "hoogle",
alias: "ho",
name: "hoogle",
favicon: "https://www.haskell.org/img/favicon.ico",
search: `https://www.haskell.org/hoogle/?hoogle=${
search: `https://www.haskell.org/hoogle/?hoogle=${
encodeURIComponent("+platform +xmonad +xmonad-contrib ")}`, // This tells Hoogle to include these modules in the search - encodeURIComponent is only used for better readability
compl: `https://www.haskell.org/hoogle/?mode=json&hoogle=${
compl: `https://www.haskell.org/hoogle/?mode=json&hoogle=${
encodeURIComponent("+platform +xmonad +xmonad-contrib ")}`,
}
@ -842,22 +842,22 @@ completions.ho.callback = response => JSON.parse(response.text).results
// Haskell Wiki
completions.hw = {
alias: "hw",
name: "haskellwiki",
alias: "hw",
name: "haskellwiki",
favicon: "https://www.haskell.org/img/favicon.ico",
search: "https://wiki.haskell.org/index.php?go=go&search=",
compl: "https://wiki.haskell.org/api.php?action=opensearch&format=json&formatversion=2&namespace=0&limit=10&suggest=true&search=",
search: "https://wiki.haskell.org/index.php?go=go&search=",
compl: "https://wiki.haskell.org/api.php?action=opensearch&format=json&formatversion=2&namespace=0&limit=10&suggest=true&search=",
}
completions.hw.callback = response => JSON.parse(response.text)[1]
// Hayoo
completions.hy = {
alias: "hy",
name: "hayoo",
alias: "hy",
name: "hayoo",
favicon: "https://www.haskell.org/img/favicon.ico",
search: "http://hayoo.fh-wedel.de/?query=",
compl: "http://hayoo.fh-wedel.de/json?query=",
search: "http://hayoo.fh-wedel.de/?query=",
compl: "http://hayoo.fh-wedel.de/json?query=",
}
completions.hy.callback = response => JSON.parse(response.text).result
@ -917,11 +917,11 @@ completions.md.callback = (response) => {
// NPM registry search
completions.np = {
alias: "np",
name: "npm",
alias: "np",
name: "npm",
favicon: "https://static.npmjs.com/da3ab40fb0861d15c83854c29f5f2962.png",
search: "https://www.npmjs.com/search?q=",
compl: "https://api.npms.io/v2/search/suggestions?size=20&q=",
search: "https://www.npmjs.com/search?q=",
compl: "https://api.npms.io/v2/search/suggestions?size=20&q=",
}
completions.np.callback = response => JSON.parse(response.text)