这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@guiccbr
Copy link

@guiccbr guiccbr commented May 31, 2023

Please verify the following:

  • yarn test jest tests pass with new tests, if relevant

Describe your PR

Enable eslint react-hook/recommended rule set, as recommended in the react dev website: https://react.dev/learn/editor-setup#linting

Related discussion: #2453

Enable eslint react-hook/recommended rule set, as recommended in the react dev
website: https://react.dev/learn/editor-setup#linting
@@ -1,3 +1,4 @@
/* eslint-disable react-hooks/rules-of-hooks */
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file has a method that starts with use* and react-hooks/rules-of-hooks is complaining about that.

I'm not sure if this is the best approach here.

@guiccbr guiccbr marked this pull request as ready for review June 2, 2023 02:02
Copy link
Contributor

@joshuayoes joshuayoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made some comments to move some of the linting settings, but otherwise looks good so far

"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",
Copy link
Contributor

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 boilerplate folder is for the app content.

Comment on lines +86 to +87
"standard",
"plugin:react-hooks/recommended"
Copy link
Contributor

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 boilerplate folder is for the app content.

@guiccbr
Copy link
Author

guiccbr commented Jun 28, 2023

Thanks. I'll close and reopen later because after enabling the the linter failed for the generated app. I'll need some more time to fix that.

@guiccbr guiccbr closed this Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants