Skip to content

Commit

Permalink
🎨 fix buggy prettify formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
heytulsiprasad committed Sep 17, 2020
1 parent 977d0cd commit e5760ba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,12 @@
},
"husky": {
"hooks": {
"pre-commit": "yarn lint && yarn format"
"pre-commit": "yarn lint"
}
},
"lint-staged": {
"*.+(js|jsx)": [
"eslint --fix",
"git add"
],
"*.+(json|css|md)": [
"prettier --write",
"eslint . --fix",
"git add"
]
},
Expand Down
4 changes: 3 additions & 1 deletion src/redux/actions/authActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export const getUserProfile = () => (dispatch) => {
axios
.get("/profile", { withCredentials: true })
.then((res) => {
const { name, bio, phone, local, google, facebook } = res.data;
const {
name, bio, phone, local, google, facebook,
} = res.data;

const user = {
name,
Expand Down
15 changes: 7 additions & 8 deletions src/redux/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ const middleware = [thunk];
const initialState = {};

// eslint-disable-next-line no-underscore-dangle
const devTools =
process.env.NODE_ENV === "production"
? compose(applyMiddleware(...middleware))
: compose(
applyMiddleware(...middleware),
window.__REDUX_DEVTOOLS_EXTENSION__ &&
window.__REDUX_DEVTOOLS_EXTENSION__()
);
const devTools = process.env.NODE_ENV === "production"
? compose(applyMiddleware(...middleware))
: compose(
applyMiddleware(...middleware),
window.__REDUX_DEVTOOLS_EXTENSION__
&& window.__REDUX_DEVTOOLS_EXTENSION__(),
);

const store = createStore(rootReducer, initialState, devTools);

Expand Down

0 comments on commit e5760ba

Please sign in to comment.