diff --git a/client/package.json b/client/package.json index 5add61b0..86eec3b0 100755 --- a/client/package.json +++ b/client/package.json @@ -5,6 +5,7 @@ "main": "index.js", "scripts": { "start": "parcel index.html --port 40080", + "lint": "eslint --fix src/", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", diff --git a/client/src/components/cryp.container.js b/client/src/components/cryp.container.js index 490d1b45..c858c658 100644 --- a/client/src/components/cryp.container.js +++ b/client/src/components/cryp.container.js @@ -4,7 +4,7 @@ const InvStats = require('./invstats'); // Add the incident from state as a property const addState = connect( - state => ({ cryp: state.cryp }), + state => ({ cryp: state.cryp }) ); module.exports = addState(InvStats); diff --git a/client/src/components/login.component.jsx b/client/src/components/login.component.jsx index 627deccf..140ee015 100644 --- a/client/src/components/login.component.jsx +++ b/client/src/components/login.component.jsx @@ -1,3 +1,4 @@ +// eslint-disable-next-line const preact = require('preact'); function renderLogin({ account, submitLogin }) { @@ -12,7 +13,12 @@ function renderLogin({ account, submitLogin }) {
- (details.name = e.target.value)} /> + (details.name = e.target.value)} + /> @@ -36,8 +42,11 @@ function renderLogin({ account, submitLogin }) {
-