chore: upgrade ESLint to v9 and update configurations (#356)

* chore: upgrade ESLint to v9 and update configurations

Upgrade ESLint and configure and update ESLint rules.

* refactor: update code to comply with new ESLint v9 rules
This commit is contained in:
Sat Naing
2024-08-19 12:58:16 +07:00
committed by GitHub
parent dab61b3714
commit 6bbe177566
8 changed files with 527 additions and 686 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export default function SearchBar({ searchList }: Props) {
useEffect(() => {
// Add search result only if
// input value is more than one character
let inputResult = inputVal.length > 1 ? fuse.search(inputVal) : [];
const inputResult = inputVal.length > 1 ? fuse.search(inputVal) : [];
setSearchResults(inputResult);
// Update search string in URL