OWASP / OWASP/Nest

fix(frontend): resolve ESLint v10 lint errors blocking dependabot PR #4866

Open
#5,209 0 comments 0 reactions 1 assignee Claimed by @Adarshkumar0509 View on GitHub
bug
Dominant language
Python
Stars
451
Forks
707
Avg merge
22h 59m
Merged PRs (30d)
91

Description

Community & Support: [LinkedIn Group](https://www.linkedin.com/groups/14656108/) · [Slack #project-nest](https://owasp.slack.com/archives/project-nest)

Active project leaders: Arkadii Yakovets -- [GitHub](https://github.com/arkid15r/) · [LinkedIn](https://www.linkedin.com/in/arkid15r/) · [Slack](https://owasp.slack.com/team/U060W3NKLTF); Kate Golovanova -- [GitHub](https://github.com/kasya/) · [LinkedIn](https://www.linkedin.com/in/kate-golovanova/) · [Slack](https://owasp.slack.com/team/U07PWB1JZ6Z)

[Contributing](https://github.com/owasp/nest/blob/main/CONTRIBUTING.md) · [Code of Conduct](https://github.com/owasp/nest/blob/main/CODE_OF_CONDUCT.md) · [GSoC Mentors](https://github.com/owasp/nest/blob/main/MENTORS.md)

---
## Describe the bug

Dependabot PR #4866 bumps @eslint/js from 9.39.4 to 10.0.1. ESLint v10 introduces two new rules that are now failing lint:

- no-useless-assignment in src/components/SkeletonsBase.tsx
- preserve-caught-error in src/hooks/useLogout.ts

These need to be fixed for the PR to pass CI.
References: #4866

## Are you going to work on fixing this?
- [X] Yes
- [ ] No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.