JS: Update OK-style comments to $-style

This commit is contained in:
Asger F
2025-02-06 13:34:01 +01:00
parent 7e5c24a8ec
commit 9be041e27d
536 changed files with 4408 additions and 4762 deletions

View File

@@ -1,4 +1,3 @@
const C = 45;
// NOT OK
class C {}
class C {} // $ Alert

View File

@@ -1,4 +1,4 @@
// OK: `const` is block scoped in ECMAScript 2015
// OK - `const` is block scoped in ECMAScript 2015
function f() {
{
const val = 1;

View File

@@ -1,4 +1,3 @@
const C = 45;
// NOT OK
function C() {}
function C() {} // $ Alert

View File

@@ -1,2 +1,2 @@
// OK
const s = "there";

View File

@@ -1,23 +1,19 @@
const x = 23, y = 42;
// NOT OK
x = 42;
x = 42; // $ Alert
// NOT OK
y = 23;
y = 23; // $ Alert
// NOT OK
var y = -1;
var y = -1; // $ Alert
// NOT OK
++x;
++x; // $ Alert
var z = 56;
// OK
z = 72;
// OK
const s = "hi";
(function (){