Nucleus handler tools β€Ί Docs β€Ί Checks

A backslash that disappears

Warningno-useless-escapeA general JavaScript mistake (ESLint's no-useless-escape) Β· Probably wrong: Nucleus runs it, but not the way you meant.

Why it matters

In a string a backslash only escapes some characters: here it disappears. In a Windows path write two backslashes ("C:\\Games"), or "\\" for one.

Example

βœ— Wrong

var p = "C:\Games";

βœ“ Right

var p = "C:\\Games";

How to fix it

In a Windows path write two backslashes.

Turn it off, or change how it shows

Each check can be shown as an error, warning, info or hint, or turned off. VS Code: "splitscreenme.lint.rules": { "no-useless-escape": "off" } in your settings. Notepad++: Plugins β€Ί Nucleus Co-op handlers β€Ί Settings. Command line: ncdev lint --rule no-useless-escape=off. Other editors: the lint.rules setting of ncdev lsp.

Is this right?
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop