Skip to content

Commit e010199

Browse files
committed
Add linting script and fix violations
1 parent a3edd24 commit e010199

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
key: yarn-dependencies-cypress-{{ checksum "yarn.lock" }}
4242
paths:
4343
- ~/.cache
44+
- run: yarn lint
4445
- run: yarn e2e:prod
4546
build:
4647
docker:
@@ -110,7 +111,6 @@ jobs:
110111
to: 'forms.qa.codeyourfuture.io'
111112
cf_distribution_id: E2VFUDC8YCDBKS
112113

113-
114114
deploy_staging:
115115
docker:
116116
- image: circleci/python:3.6-jessie

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@
4242
"e2e": "concurrently -k -s first -n \"app,mock,e2e\" \"BROWSER=none yarn start\" \"yarn e2e:mock\" \"yarn e2e:run\"",
4343
"e2e:mock": "node ./e2e/fixtures/server.js",
4444
"e2e:run": "wait-on -l http-get://localhost:3000 && cypress run",
45-
"lint:fix": "./node_modules/.bin/eslint --fix src",
46-
"prettier": "./node_modules/.bin/prettier --config .prettierrc --write 'src/**/*.js'",
45+
"lint": "eslint src --max-warnings 0 && prettier --check 'src/**/*.js'",
46+
"lint:fix": "eslint --fix src",
47+
"prettier": "prettier --config .prettierrc --write 'src/**/*.js'",
4748
"eject": "react-scripts eject"
4849
},
4950
"eslintConfig": {

src/App.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ import Navbar from './Components/Navbar'
99
import reducers from './Redux/Reducer'
1010
import Routes from './Routes'
1111

12-
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
13-
const store = createStore(reducers, composeEnhancers(applyMiddleware(ReduxThunk)))
12+
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
13+
const store = createStore(
14+
reducers,
15+
composeEnhancers(applyMiddleware(ReduxThunk))
16+
)
1417

1518
const App = () => (
1619
<Provider store={store}>

0 commit comments

Comments
 (0)