quick-lint-js

Find bugs in JavaScript programs.

E0042: unexpected '@'

In JavaScript, @ is only allowed in string and template literals. It is a syntax error to write @ anywhere else:

@  // oops

// JavaScript does not support C# verbatim strings:
let notepad = @"C:\Windows\System32\notepad.exe";

To fix this error, remove the @:

let notepad = "C:\\Windows\\System32\\notepad.exe";

Documentation for other errors