Skip to content

Commit

Permalink
add eslint react hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
tessalt committed Aug 4, 2020
1 parent 7dfc064 commit 06024e1
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 59 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Expand Up @@ -21,6 +21,7 @@ const typescriptOverrides = {
"@typescript-eslint/tslint",
"react",
"jsx-a11y",
"react-hooks",
],
settings: {
react: {
Expand Down Expand Up @@ -94,6 +95,8 @@ const typescriptOverrides = {
"no-empty-function": "off",
// (tessalt) disabled because video elements are only used to display gifs, which have no audio
"jsx-a11y/media-has-caption": "off",
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": "warn",
}
),
};
Expand Down

0 comments on commit 06024e1

Please sign in to comment.