Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace standard with prettier (#152)
- Loading branch information
Showing
26 changed files
with
437 additions
and
1,622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Ignore artifacts: | ||
build | ||
coverage | ||
*.bundle.js | ||
|
||
# Ignore all HTML files: | ||
*.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"useTabs": false, | ||
"printWidth": 100, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"semi": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import React from 'react' | ||
import ReactDOM from 'react-dom' | ||
import Root from '../../app/containers/Root' | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import Root from '../../app/containers/Root'; | ||
|
||
describe('app', () => { | ||
it('renders without crashing', () => { | ||
const div = document.createElement('div') | ||
ReactDOM.render(<Root />, div) | ||
}) | ||
}) | ||
const div = document.createElement('div'); | ||
ReactDOM.render(<Root />, div); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import React from 'react' | ||
import Root from '../../../app/containers/Root' | ||
import React from 'react'; | ||
import Root from '../../../app/containers/Root'; | ||
|
||
import renderer from 'react-test-renderer' | ||
import renderer from 'react-test-renderer'; | ||
|
||
describe('app', () => { | ||
it('should render the base app', () => { | ||
const componet = renderer.create(<Root />) | ||
const json = componet.toJSON() | ||
expect(json).toMatchSnapshot() | ||
}) | ||
}) | ||
const componet = renderer.create(<Root />); | ||
const json = componet.toJSON(); | ||
expect(json).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
describe('example test', () => { | ||
it('works', () => { | ||
expect(1).toBe(1) | ||
}) | ||
}) | ||
expect(1).toBe(1); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
import React from 'react' | ||
import { render } from 'react-dom' | ||
import Root from './containers/Root' | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
import Root from './containers/Root'; | ||
|
||
render( | ||
<Root />, | ||
document.getElementById('app') | ||
) | ||
render(<Root />, document.getElementById('app')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
const EmojiList = ({ filteredContent, onEmojiClick }) => { | ||
return ( | ||
<ul> | ||
{ | ||
filteredContent.map((emoji, idx) => { | ||
return ( | ||
<li key={idx} className='results__item'> | ||
<a | ||
href='#' | ||
className='results__link' | ||
onClick={() => onEmojiClick(this, emoji)} | ||
> | ||
{emoji.char} | ||
</a> | ||
</li> | ||
) | ||
}) | ||
} | ||
{filteredContent.map((emoji, idx) => { | ||
return ( | ||
<li key={idx} className="results__item"> | ||
<a href="#" className="results__link" onClick={() => onEmojiClick(this, emoji)}> | ||
{emoji.char} | ||
</a> | ||
</li> | ||
); | ||
})} | ||
</ul> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default EmojiList | ||
export default EmojiList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
const Search = ({ onChange, inputRef }) => { | ||
return ( | ||
<input | ||
type='text' | ||
autoFocus | ||
placeholder='Search' | ||
onChange={onChange} | ||
ref={inputRef} | ||
/> | ||
) | ||
} | ||
return <input type="text" autoFocus placeholder="Search" onChange={onChange} ref={inputRef} />; | ||
}; | ||
|
||
export default Search | ||
export default Search; |
Oops, something went wrong.