Skip to content

Commit

Permalink
Add a prettier config file to work with existing prettier eslint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjarling authored and jrgriffiniii committed Feb 17, 2020
1 parent 89bef29 commit ddbb0e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .eslintrc → .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"plugins": [
"react",
"prettier"
"react"
],
"rules": {
"no-undef": [ 1 ],
"prettier/prettier": ["error", { "singleQuote": true }]
"no-undef": [1]
},
"settings": {
"react": {
Expand Down
4 changes: 4 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
semi: false,
singleQuote: true
}
4 changes: 2 additions & 2 deletions src/containers/BrowseEverything.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ const store = configureStore()
* Example of handler for updating the DOM once an upload has completed
*/
const handleUpload = function(event) {
console.log(event);
console.log(event)
}

export default class BrowseEverything extends Component {
render() {
return (
<Provider store={store}>
<App onUpload={handleUpload}/>
<App onUpload={handleUpload} />
</Provider>
)
}
Expand Down

0 comments on commit ddbb0e9

Please sign in to comment.