<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[&quot;@iobroker&#x2F;eslint-config&quot; &amp; &quot;@param&quot; =&gt; Wo ist der Fehler?]]></title><description><![CDATA[<p dir="auto">Hallo,<br />
ich will meinen Adapter sprinklecontrol aktualisieren.<br />
Hierzu habe ich <a class="plugin-mentions-user plugin-mentions-a" href="/user/iobroker" aria-label="Profile: iobroker">@<bdi>iobroker</bdi></a>/eslint-config: 1.0.0 installiert und alle Fehler behoben.<br />
Jetzt will ich Funktionen im JSDoc deklarieren und erhalte die Fehlermeldung in eslint<br />
bei ausführen von</p>
<pre><code>"lint": "eslint -c eslint.config.mjs ."
</code></pre>
<p dir="auto">in der package.json</p>
<pre><code>/home/dirk/ioBroker.sprinklecontrol/lib/tools.js
  7:1  warning  Types are not permitted on @param  jsdoc/no-types
  8:1  warning  Types are not permitted on @param  jsdoc/no-types
</code></pre>
<p dir="auto">Meine Funktion lautet:</p>
<pre><code>/**
 * func addTime (02:12:24 + 00:15) || (807) =&gt; 02:12:39
 *
 * @param {string|number} time1 - z.B. 02:12:24 || 807 =&gt; 02:12:39
 * @param {string|number|undefined} time2 -z.B. 02:12:24 || 807 =&gt; 02:12:39 || undef.
 * @returns
 */
function addTime(time1, time2){
 . . . .
}
</code></pre>
<p dir="auto">Kann mir bitte jemand sagen wo der Fehler liegt und wie ich ihn beheben kann?</p>
<p dir="auto">Auf <a href="https://github.com/Dirk-Peter-md/ioBroker.sprinklecontrol/blob/master/lib/tools.js" rel="nofollow ugc">Github.com</a> ist die Funktion zu sehen</p>
]]></description><link>https://forum.iobroker.net/topic/78859/iobroker-eslint-config-param-wo-ist-der-fehler</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 15:28:54 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/78859.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Dec 2024 16:37:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &quot;@iobroker&#x2F;eslint-config&quot; &amp; &quot;@param&quot; =&gt; Wo ist der Fehler? on Fri, 27 Dec 2024 17:37:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mcm1957" aria-label="Profile: mcm1957">@<bdi>mcm1957</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/fastfoot" aria-label="Profile: fastfoot">@<bdi>fastfoot</bdi></a><br />
Danke für die superschnellen Antworten.<br />
MfG Dirk Peter</p>
]]></description><link>https://forum.iobroker.net/post/1232308</link><guid isPermaLink="true">https://forum.iobroker.net/post/1232308</guid><dc:creator><![CDATA[Dirk Peter]]></dc:creator><pubDate>Fri, 27 Dec 2024 17:37:54 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;@iobroker&#x2F;eslint-config&quot; &amp; &quot;@param&quot; =&gt; Wo ist der Fehler? on Fri, 27 Dec 2024 17:33:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fastfoot" aria-label="Profile: fastfoot">@<bdi>fastfoot</bdi></a></p>
<p dir="auto">Ok - danke für die Richtigstellung.</p>
<p dir="auto">Tatsache ist jedenfalls, dass auch für JS die recommended TS checks geladen werden. Das ist ein Fehler in der eslint-config, für JS sollten die "normalen" Defaults geladen werden. Wurde von Foxriver76 bestätigt und wir in der nächsten Release gefixed.</p>
<p dir="auto">Issue dazu: <a href="https://github.com/ioBroker/eslint-config/issues/29" rel="nofollow ugc">https://github.com/ioBroker/eslint-config/issues/29</a></p>
]]></description><link>https://forum.iobroker.net/post/1232306</link><guid isPermaLink="true">https://forum.iobroker.net/post/1232306</guid><dc:creator><![CDATA[mcm1957]]></dc:creator><pubDate>Fri, 27 Dec 2024 17:33:04 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;@iobroker&#x2F;eslint-config&quot; &amp; &quot;@param&quot; =&gt; Wo ist der Fehler? on Fri, 27 Dec 2024 17:21:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mcm1957" aria-label="Profile: mcm1957">@<bdi>mcm1957</bdi></a> sagte in <a href="/post/1232296">"@iobroker/eslint-config" &amp; "@param" =&gt; Wo ist der Fehler?</a>:</p>
<blockquote>
<p dir="auto">Es ist jedenfalls nicht wirklich sinnvoll den Typ weglassen zu müssen um ihn in den Beschreibungstest zu schieben...</p>
</blockquote>
<p dir="auto">Diese Aussage ist <strong>falsch!</strong> Der Typ wird sehr wohl auch nach der Umstellung richtig erkannt und moniert, wenn falsch.</p>
<p dir="auto">Richtig ist dass die Rule bei reinem JS nicht benötigt wird, sie ist dazu da um existierende Typdeklarationen nicht zweimal zu haben, was nur bei TS der Fall sein kann</p>
]]></description><link>https://forum.iobroker.net/post/1232302</link><guid isPermaLink="true">https://forum.iobroker.net/post/1232302</guid><dc:creator><![CDATA[fastfoot]]></dc:creator><pubDate>Fri, 27 Dec 2024 17:21:29 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;@iobroker&#x2F;eslint-config&quot; &amp; &quot;@param&quot; =&gt; Wo ist der Fehler? on Fri, 27 Dec 2024 17:30:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dirk-peter" aria-label="Profile: dirk-peter">@<bdi>dirk-peter</bdi></a></p>
<p dir="auto">SO schon geklärt.</p>
<p dir="auto">Diese Rule sollte nur bei TYPESCRITP aktiv sein. Bei JS MOdulen ist die unsinning. Dies wird in der zentralen Konfig nachgebessert.</p>
<p dir="auto">Bitte daher entweder die Warning mal ignorieren oder die Rule in der lokalen Config disablen.</p>
]]></description><link>https://forum.iobroker.net/post/1232297</link><guid isPermaLink="true">https://forum.iobroker.net/post/1232297</guid><dc:creator><![CDATA[mcm1957]]></dc:creator><pubDate>Fri, 27 Dec 2024 17:30:32 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;@iobroker&#x2F;eslint-config&quot; &amp; &quot;@param&quot; =&gt; Wo ist der Fehler? on Fri, 27 Dec 2024 17:40:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dirk-peter" aria-label="Profile: dirk-peter">@<bdi>dirk-peter</bdi></a></p>
<p dir="auto">Ev. wart mal mit einer großflächigeren Umstellung ab. Auf den ersten Blick sieht es für mich so aus, als wäre die rule bei JS nicht sinnvoll. Oder ist das ein TypeScript Code? <s>Es ist jedenfalls nicht wirklich sinnvoll den Typ weglassen zu müssen um ihn in den Beschreibungstest zu schieben...</s></p>
<p dir="auto">Ich hab grad mal bei <a class="plugin-mentions-user plugin-mentions-a" href="/user/foxriver76" aria-label="Profile: foxriver76">@<bdi>foxriver76</bdi></a> nachgefragt.</p>
<p dir="auto">EDIT: Satz gestrichen nach  inhaltlicher Korrektur durch Fastfoot</p>
]]></description><link>https://forum.iobroker.net/post/1232296</link><guid isPermaLink="true">https://forum.iobroker.net/post/1232296</guid><dc:creator><![CDATA[mcm1957]]></dc:creator><pubDate>Fri, 27 Dec 2024 17:40:32 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;@iobroker&#x2F;eslint-config&quot; &amp; &quot;@param&quot; =&gt; Wo ist der Fehler? on Fri, 27 Dec 2024 17:02:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dirk-peter" aria-label="Profile: dirk-peter">@<bdi>dirk-peter</bdi></a> kann ich nicht beantworten, evtl. liegt das an eslint aber wissen tu ich es nicht. Ich kenne es nur wie gezeigt habe aber auch nie eine Beschreibung von JSDOC gelesen :-)</p>
]]></description><link>https://forum.iobroker.net/post/1232295</link><guid isPermaLink="true">https://forum.iobroker.net/post/1232295</guid><dc:creator><![CDATA[fastfoot]]></dc:creator><pubDate>Fri, 27 Dec 2024 17:02:27 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;@iobroker&#x2F;eslint-config&quot; &amp; &quot;@param&quot; =&gt; Wo ist der Fehler? on Fri, 27 Dec 2024 16:54:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fastfoot" aria-label="Profile: fastfoot">@<bdi>fastfoot</bdi></a> Ich habe es getestet, und es funktioniert.  :-)<br />
Aber eine Frage:<br />
Warum wird es unter Use <a href="https://jsdoc.app/tags-param" rel="nofollow ugc">JSDoc</a> anders dargestellt?</p>
<pre><code>/**
 * @param {string} somebody - Somebody's name.
 */
function sayHello(somebody) {
    alert('Hello ' + somebody);
}
</code></pre>
]]></description><link>https://forum.iobroker.net/post/1232292</link><guid isPermaLink="true">https://forum.iobroker.net/post/1232292</guid><dc:creator><![CDATA[Dirk Peter]]></dc:creator><pubDate>Fri, 27 Dec 2024 16:54:16 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;@iobroker&#x2F;eslint-config&quot; &amp; &quot;@param&quot; =&gt; Wo ist der Fehler? on Fri, 27 Dec 2024 16:43:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dirk-peter" aria-label="Profile: dirk-peter">@<bdi>dirk-peter</bdi></a> sagte in <a href="/post/1232286">"@iobroker/eslint-config" &amp; "@param" =&gt; Wo ist der Fehler?</a>:</p>
<blockquote>
<ul>
<li>@param {string|number} time1 -</li>
</ul>
</blockquote>
<p dir="auto">tausche type mit parameter name ==&gt;  * @param time1 {string|number}  Beschreibung</p>
]]></description><link>https://forum.iobroker.net/post/1232287</link><guid isPermaLink="true">https://forum.iobroker.net/post/1232287</guid><dc:creator><![CDATA[fastfoot]]></dc:creator><pubDate>Fri, 27 Dec 2024 16:43:07 GMT</pubDate></item></channel></rss>