mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JS: Update OK-style comments to $-style
This commit is contained in:
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user