Apply new lint rules in more packages (#15521)

This commit is contained in:
Andy
2017-03-30 12:33:22 -07:00
committed by GitHub
parent 4173a37d30
commit 4cac3c5b44
59 changed files with 503 additions and 544 deletions

View File

@@ -7,13 +7,12 @@ interface Tester {
same(a: any, b: any): void;
plan(id: number): void;
ok(a: any): void;
};
}
function test(c: string, f: (t: Tester) => void) {
return;
}
test('no elements', t => {
t.is(xml(), '');
t.is(xml([]), '');
@@ -162,4 +161,4 @@ test('xml declaration options', t => {
t.is(xml([{a: 'test'}], {declaration: false}), '<a>test</a>');
t.is(xml([{a: 'test'}], {declaration: true, indent: '\n'}), '<?xml version="1.0" encoding="UTF-8"?>\n<a>test</a>');
t.is(xml([{a: 'test'}], {}), '<a>test</a>');
});
});