Skip to content

Commit

Permalink
fix: linting tsdx bug
Browse files Browse the repository at this point in the history
  • Loading branch information
audiolion committed Oct 14, 2019
1 parent 52b6cf1 commit 64c0ac0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@types/react": "^16.9.5",
"@types/react-dom": "^16.9.1",
"@types/testing-library__react": "^9.1.2",
"eslint-config-react-app": "5.0.1",
"husky": "^3.0.9",
"react": "^16.10.2",
"react-dom": "^16.10.2",
Expand Down
4 changes: 2 additions & 2 deletions src/AuthProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ export const AuthProvider: React.FC<AuthProviderProps> = ({
if (!previousAuthenticated && authenticated) {
onLogin && onLogin();
}
}, [previousAuthenticated, authenticated]);
}, [previousAuthenticated, authenticated, onLogin]);

React.useEffect(() => {
if (previousAuthenticated && !authenticated) {
onLogout && onLogout();
}
}, [previousAuthenticated, authenticated]);
}, [previousAuthenticated, authenticated, onLogout]);

const contextValue = React.useMemo(
() => ({
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,7 @@ concat-stream@^1.5.0:
readable-stream "^2.2.2"
typedarray "^0.0.6"

confusing-browser-globals@^1.0.9:
confusing-browser-globals@^1.0.8, confusing-browser-globals@^1.0.9:
version "1.0.9"
resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.9.tgz#72bc13b483c0276801681871d4898516f8f54fdd"
integrity sha512-KbS1Y0jMtyPgIxjO7ZzMAuUpAKMt1SzCL9fsrKsX6b0zJPTaT0SiSPmewwVZg9UAO83HVIlEhZF84LIjZ0lmAw==
Expand Down Expand Up @@ -2565,6 +2565,13 @@ eslint-config-prettier@^6.0.0:
dependencies:
get-stdin "^6.0.0"

[email protected]:
version "5.0.1"
resolved "https://registry.yarnpkg.com/eslint-config-react-app/-/eslint-config-react-app-5.0.1.tgz#5f3d666ba3ee3cb384eb943e260e868f6c72251b"
integrity sha512-GYXP3F/0PSHlYfGHhahqnJze8rYKxzXgrzXVqRRd4rDO40ga4NA3aHM7/HKbwceDN0/C1Ij3BoAWFawJgRbXEw==
dependencies:
confusing-browser-globals "^1.0.8"

eslint-config-react-app@^5.0.1:
version "5.0.2"
resolved "https://registry.yarnpkg.com/eslint-config-react-app/-/eslint-config-react-app-5.0.2.tgz#df40d73a1402986030680c040bbee520db5a32a4"
Expand Down

0 comments on commit 64c0ac0

Please sign in to comment.