quick-lint-js

Find bugs in JavaScript programs.

E0042: unexpected '@'

This diagnostic has been removed in quick-lint-js version 2.17.0.

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";

Introduced in quick-lint-js version 0.2.0.

Documentation for other errors