# Linting and formatting

**URL:** <https://discourse.nodered.org/t/linting-and-formatting/93060>\
**Category:** General\
**Tags:** function-node, javascript\
**Created:** [11 November 2024 09:28 UTC](https://discourse.nodered.org/t/linting-and-formatting/93060 "2024-11-11T09:28:41Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 November 2024 20:34 UTC](https://discourse.nodered.org/t/linting-and-formatting/93060/21 "2024-11-11T20:34:12Z")

</div>

> [@TotallyInformation](#):
>
> And not in a function node either:

What do you see if you hover over the `const payload =`?  
I don't see the red marker, but if I hover over it then I do see the warning.

If you add another line using payload the grey highlight disappears.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [11 November 2024 23:03 UTC](https://discourse.nodered.org/t/linting-and-formatting/93060/22 "2024-11-11T23:03:47Z")

</div>

Yes, you are right:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/0/a04f29bd344cee8fd01789055a1a8010056d4a6d.png)

But I don't get an error squiggle.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 November 2024 09:30 UTC](https://discourse.nodered.org/t/linting-and-formatting/93060/23 "2024-11-12T09:30:31Z")

</div>

> [@TotallyInformation](#):
>
> I don't get an error squiggle.

No, nor do I, it doesn't seem to show that for unused variables.

---

<div class="post-metadata">

**Author:** ![ThingsTinkerer](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@ThingsTinkerer](https://discourse.nodered.org/u/ThingsTinkerer)\
**Post date:** [12 November 2024 09:37 UTC](https://discourse.nodered.org/t/linting-and-formatting/93060/24 "2024-11-12T09:37:04Z")

</div>

It's a warning, not error. Regardless it's false positive.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 February 2025 09:37 UTC](https://discourse.nodered.org/t/linting-and-formatting/93060/25 "2025-02-10T09:37:22Z")

</div>

Closed on 10 February 2025 09:37 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/linting-and-formatting/93060.md?page=1)
