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,8 +1,8 @@
/*global w, x:true*/
/* global y*/ // not a proper JSLint global declaration, but we (and JSHint) accept it anyway
/*global: z*/ // also not a proper global declaration
w; // OK
x; // OK
y; // not OK
z; // not OK
w;
x;
y; // $ Alert
z; // $ Alert
var x, y, z;

View File

@@ -1,11 +1,11 @@
function f(x) {
console.log(x); // OK
console.log(x);
}
console.log(x); // NOT OK
console.log(x); // $ Alert
var x = 1;
function g() {
console.log(y); // OK (not in same function)
console.log(y); // OK - not in same function
}
var y = 1;

View File

@@ -1,7 +1,7 @@
@Component(Foo) // OK
@Component(Foo)
class Foo {}
declare class Bar extends Baz {} // OK
declare class Bar extends Baz {}
declare class Baz {}
export type { I }; // OK - does not refer to the constant 'I'