improve eslint config

This commit is contained in:
Vendicated
2025-11-23 23:55:37 +01:00
parent 34c92cfb59
commit 0483a1abdc
14 changed files with 254 additions and 52 deletions
@@ -154,8 +154,8 @@ function SettingsSections() {
</Text>
<div className={cl("category-content")}>
{settings.map(Setting => {
if (typeof Setting === "function") return <Setting settings={Settings} />;
{settings.map((Setting, i) => {
if (typeof Setting === "function") return <Setting key={`Custom-${i}`} settings={Settings} />;
const { defaultValue, title, description, key, disabled, invisible } = Setting;
if (invisible?.()) return null;