Skip to content

Commit

Permalink
Adding eslint hooks plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonchanis committed May 14, 2019
1 parent cb877c6 commit 5db9bd0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"parser": "babel-eslint",
"extends": ["airbnb"],
"plugins": ["react-hooks"],
"rules": {
"react/jsx-one-expression-per-line": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
]
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "6.1.2",
"eslint-plugin-react": "7.12.3",
"eslint-plugin-react-hooks": "1.6.0",
"file-loader": "3.0.1",
"friendly-errors-webpack-plugin": "1.7.0",
"html-webpack-plugin": "3.2.0",
Expand Down

0 comments on commit 5db9bd0

Please sign in to comment.