🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@eslint-react/eff

Package Overview
Dependencies
Maintainers
1
Versions
606
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eslint-react/eff - npm Package Versions

1
56575860

1.22.0-next.2

Diff
rel1cx
published 1.22.0-next.2 •
rel1cx
published 1.22.0-beta.1 •
rel1cx
published 1.22.0-next.1 •
rel1cx
published 1.22.0-beta.0 •
rel1cx
published 1.22.0-next.0 •
rel1cx
published 1.21.1-next.1 •
rel1cx
published 1.21.1-beta.0 •
rel1cx
published 1.21.1-next.0 •
rel1cx
published 1.21.0 •

Changelog

Source

v1.21.0 (2024-12-20)

✨ New

  • feat(plugins/hooks-extra): add no-useless-custom-hooks rule by @Rel1cx

🪄 Improvements

  • refactor(plugins/hooks-extra): deprecate rule no-redundant-custom-hook in favor of no-useless-custom-hooks (the previous rule will still be available until the next major update to avoid breaking changes)

📝 Changes in Rule implementation

no-useless-custom-hooks now detects Hook calls within comments and the following code no longer triggers a warning:

// ✅ Good: A Hook that will likely use some other Hooks later
function useAuth() {
  // TODO: Replace with this line when authentication is implemented:
  // return useContext(Auth);
  return TEST_USER;
}
rel1cx
published 1.21.0-beta.1 •