Skip to content

Commit

Permalink
Update eslint-config-next version to newest + modify gitleaks configu…
Browse files Browse the repository at this point in the history
…ration
  • Loading branch information
petark7 committed Nov 12, 2024
1 parent c75f947 commit 6ee47dc
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 242 deletions.
6 changes: 5 additions & 1 deletion .gitleaks.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
title = "Custom Gitleaks Config"
allowlist = { regexes = ["https://registry\\.npmjs\\.org"] }

[allowlist]
files = ["package-lock.json"]
regexes = ["https://registry\\.npmjs\\.org"]
paths = ['''package-lock\.json''']

# Rule to detect API keys
[[rules]]
Expand Down
2 changes: 1 addition & 1 deletion components/module-components/contact/ContactForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const ContactForm = () => {
toast.success('Пораката беше успешно испратена!');
resetForm();
setTurnstileToken(null);
} catch (error) {
} catch {
toast.error('Настана грешка при испраќањето на пораката. Пробајте повторно.');
}
},
Expand Down
2 changes: 1 addition & 1 deletion components/reusable-components/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const Footer = () => {
toast.success('Успешно се претплативте на нашиот билтен!');
resetForm();
setTurnstileToken(null);
} catch (error) {
} catch {
toast.error('Настана грешка. Пробај повторно.');
}
};
Expand Down
2 changes: 1 addition & 1 deletion components/reusable-components/login-form/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const LoginForm = () => {
} else {
toast.error(response);
}
} catch (error) {
} catch {
toast.error('Грешка');
}
};
Expand Down
Loading

0 comments on commit 6ee47dc

Please sign in to comment.