This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtest.ts.lint
52 lines (43 loc) · 1.72 KB
/
test.ts.lint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { Column, Entity, Generated, PrimaryColumn } from "typeorm";
@Entity()
export class User {
@Column()
@Generated("uuid")
public uuid?: string;
@PrimaryColumn() public sub: string;
@Column({ nullable: true })
public username?: string;
constructor(sub: string) {
this.sub = sub;
}
}
document.write('Test content');
document.write(`Test content`);
document.write(content);
~~~~~~~~~~~~~~~~~~~~~~~ [Found document.write with non-literal argument]
document.write(`Test ${ content }`);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Found document.write with non-literal argument]
document.writeln('Test content');
document.writeln(`Test content`);
document.writeln(content);
~~~~~~~~~~~~~~~~~~~~~~~~~ [Found document.writeln with non-literal argument]
document.writeln(`Test ${ content }`);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Found document.writeln with non-literal argument]
el.insertAdjacentHTML("Test content");
el.insertAdjacentHTML(`Test content`);
el.insertAdjacentHTML(content);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Found Element.insertAdjacentHTML with non-literal argument]
el.insertAdjacentHTML(`${ content }`);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Found Element.insertAdjacentHTML with non-literal argument]
el.innerHTML = 'Test content';
el.innerHTML = `Test content`;
el.innerHTML = data;
~~~~~~~~~~~~~~~~~~~ [Found Element.innerHTML with non-literal value]
el.innerHTML = `${ data }`;
~~~~~~~~~~~~~~~~~~~~~~~~~~ [Found Element.innerHTML with non-literal value]
el.outerHTML = 'Test content';
el.outerHTML = `Test content`;
el.outerHTML = data;
~~~~~~~~~~~~~~~~~~~ [Found Element.outerHTML with non-literal value]
el.outerHTML = `${ data }`;
~~~~~~~~~~~~~~~~~~~~~~~~~~ [Found Element.outerHTML with non-literal value]