Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Kirchhoff committed Jun 25, 2020
1 parent ef3ac3d commit 676c10b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/webpack/components/AppRouter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import { Container } from 'react-bootstrap';
import { BrowserRouter, Route, Switch } from 'react-router-dom';

import Header from '../components/Header';
import Home from '../components/Home';
Expand Down
3 changes: 1 addition & 2 deletions app/webpack/components/Header.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import logo from 'images/text-with-whisk-color.png';
import React from 'react';
import { Container } from 'react-bootstrap';
import { NavLink } from 'react-router-dom';

import logo from 'images/text-with-whisk-color.png'

const Header = () => (
<nav className='navbar navbar-expand-sm sticky-top navbar-light'>
<Container>
Expand Down
8 changes: 4 additions & 4 deletions app/webpack/components/ImageGrid.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import React, { useEffect,useState } from 'react';
import { Container, Row } from 'react-bootstrap';

import ImageBox from './ImageBox';
Expand All @@ -16,8 +16,8 @@ const ImageGrid = () => {
.then(response => {
setImageBoxes(generateImageBoxes(response.data));
})
.catch(error => console.log(error))
}
.catch(error => console.log(error));
};
fetchData();
}, []);

Expand All @@ -36,7 +36,7 @@ const ImageGrid = () => {
handleImageBoxClick={showModal}
/>
));
}
};

return (
<Container className='image-grid'>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.1.0",
"private": true,
"scripts": {
"lint": "eslint app/javascript --ext .jsx",
"lint": "eslint --ext .js app/webpack/helpers app/webpack/components",
"format": "yarn lint --fix",
"test": "jest app/javascript/tests"
"test": "jest app/webpack/tests"
},
"dependencies": {
"@babel/preset-react": "^7.8.3",
Expand Down

0 comments on commit 676c10b

Please sign in to comment.