-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: enable eslint react-hook/recommended rule set #2454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,6 +68,7 @@ | |
| "eslint-plugin-import": "^2.22.1", | ||
| "eslint-plugin-node": "^11.1.0", | ||
| "eslint-plugin-promise": "^5.1.0", | ||
| "eslint-plugin-react-hooks": "^4.6.0", | ||
| "husky": "^7.0.1", | ||
| "jest": "^27.0.6", | ||
| "prettier": "2.8.8", | ||
|
|
@@ -82,7 +83,8 @@ | |
| "extends": [ | ||
| "prettier", | ||
| "plugin:@typescript-eslint/recommended", | ||
| "standard" | ||
| "standard", | ||
| "plugin:react-hooks/recommended" | ||
|
Comment on lines
+86
to
+87
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you move this package to boilerplate/package.json instead? This top level package.json is for the cli, where as the boilerplate folder is for the app content. |
||
| ], | ||
| "plugins": [ | ||
| "@typescript-eslint" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| /* eslint-disable react-hooks/rules-of-hooks */ | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file has a method that starts with I'm not sure if this is the best approach here. |
||
| import { GluegunToolbox } from "../types" | ||
| import { | ||
| isAndroidInstalled, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this package to boilerplate/package.json instead?
This top level package.json is for the cli, where as the
boilerplatefolder is for the app content.