Skip to content

Commit

Permalink
fix(formating): Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
JureSotosek committed Sep 16, 2018
1 parent d2933f0 commit 4726f4e
Show file tree
Hide file tree
Showing 7 changed files with 349 additions and 377 deletions.
41 changes: 20 additions & 21 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
{

"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "6.10"
}
}
]
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
[
"transform-react-jsx",
{
"pragma": "h"
}
]
]
}
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "6.10"
}
}
]
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
[
"transform-react-jsx",
{
"pragma": "h"
}
]
]
}
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![npm version](https://badge.fury.io/js/emma-cli.svg)](https://badge.fury.io/js/emma-cli)
![npm](https://img.shields.io/npm/dt/emma-cli.svg)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)
[![Backers on Open Collective](https://opencollective.com/emma-cli/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/emma-cli/sponsors/badge.svg)](#sponsors)
[![Backers on Open Collective](https://opencollective.com/emma-cli/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/emma-cli/sponsors/badge.svg)](#sponsors)

> Install the package you are looking for.
Expand All @@ -20,9 +20,9 @@ Emma is a command line assistant which helps you search and install packages mor

## Features

- __Extremely fast:__ Search all the packages from NPM and Yarn using your terminal.
- __Build the stack:__ Search for multiple packages and install them with one keystroke.
- __Automatic tool detection:__ Detects whether it should use Yarn or NPM, out of the box.
- **Extremely fast:** Search all the packages from NPM and Yarn using your terminal.
- **Build the stack:** Search for multiple packages and install them with one keystroke.
- **Automatic tool detection:** Detects whether it should use Yarn or NPM, out of the box.

## Install

Expand Down Expand Up @@ -51,13 +51,13 @@ Picked:

```md
Usage
$ emma
$ emma

Example
$ emma -D
$ emma -D

Options
--dev -D Add to dev dependencies.
--dev -D Add to dev dependencies.

Run without package-name to enter live search.
Use keyboard to search through package library.
Expand All @@ -67,17 +67,15 @@ Click enter to trigger the install.

## Contributors

This project exists thanks to all the people who contribute.
This project exists thanks to all the people who contribute.
<a href="graphs/contributors"><img src="https://opencollective.com/emma-cli/contributors.svg?width=890&button=false" /></a>


## Backers

Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/emma-cli#backer)]

<a href="https://opencollective.com/emma-cli#backers" target="_blank"><img src="https://opencollective.com/emma-cli/backers.svg?width=890"></a>


## Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/emma-cli#sponsor)]
Expand All @@ -93,8 +91,6 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
<a href="https://opencollective.com/emma-cli/sponsor/8/website" target="_blank"><img src="https://opencollective.com/emma-cli/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/emma-cli/sponsor/9/website" target="_blank"><img src="https://opencollective.com/emma-cli/sponsor/9/avatar.svg"></a>



## License

MIT © [Matic Zavadlal](https://github.com/maticzav)
Expand Down
27 changes: 2 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,32 +53,9 @@
"@babel/cli": "^7.0.0-beta.40",
"@babel/core": "^7.0.0-beta.40",
"@babel/preset-env": "^7.0.0-beta.40",
"ava": "^0.25.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"cross-env": "^5.1.3",
"eslint-config-xo-react": "^0.16.0",
"eslint-plugin-react": "^7.7.0",
"semantic-release": "^12.4.1",
"xo": "^0.20.3"
},
"xo": {
"extends": "xo-react",
"semicolon": false,
"space": 3,
"rules": {
"react/prop-types": 0,
"import/prefer-default-export": "off",
"object-curly-spacing": [
"error",
"always"
],
"no-use-extended-native": "off"
},
"settings": {
"react": {
"pragma": "h"
}
}
"semantic-release": "^12.4.1"
},
"license": "MIT",
"repository": {
Expand All @@ -90,4 +67,4 @@
"url": "https://opencollective.com/emma-cli",
"logo": "https://opencollective.com/emma-cli/logo.txt"
}
}
}
16 changes: 9 additions & 7 deletions src/algolia.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import algoliasearch from 'algoliasearch'
import algoliasearch from 'algoliasearch';

export const algolia = {
appId: 'OFCNCOG2CU',
apiKey: '6fe4476ee5a1832882e326b506d14126',
indexName: 'npm-search'
}
appId: 'OFCNCOG2CU',
apiKey: '6fe4476ee5a1832882e326b506d14126',
indexName: 'npm-search'
};

const client = algoliasearch(algolia.appId, algolia.apiKey).initIndex(algolia.indexName)
const client = algoliasearch(algolia.appId, algolia.apiKey).initIndex(
algolia.indexName
);

export const search = query => client.search(query)
export const search = query => client.search(query);
Loading

0 comments on commit 4726f4e

Please sign in to comment.