Skip to content

Commit

Permalink
chore: updates to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
rafischer1 committed Aug 22, 2023
1 parent d625658 commit 7413b42
Show file tree
Hide file tree
Showing 4 changed files with 235 additions and 294 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error",
"react/prop-types": "off"
"react/prop-types": "off",
"no-unused-vars": "off"
},
"root": true
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"eslint-plugin-prettier": "^4.0.0",
"firebase": "^9.6.6",
"jest": "^27.5.1",
"node-sass": "^7.0.1",
"node-sass": "9.0.0",
"prettier": "^2.5.1",
"react": "^18.1.0",
"react-dom": "^18.0.0",
Expand Down
3 changes: 2 additions & 1 deletion src/redux/cart/cart.actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ describe("Cart Actions", () => {

it("should handle REMOVE_ITEM action", () => {
const removeItemFromCartRes = removeItemFromCart(mocks.mockCartItems[0]);
const removeItem = CartActionTypes.REMOVE_ITEM
expect(removeItemFromCartRes).toEqual({
type: CartActionTypes.REMOVE_ITEM,
type: removeItem,
payload: mocks.mockCartItems[0],
});
});
Expand Down
Loading

0 comments on commit 7413b42

Please sign in to comment.