Skip to content

Commit 0e9bb67

Browse files
Fix tslint errors
1 parent 8e3c4e1 commit 0e9bb67

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

test/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ describe("parser", () => {
472472
"test17": () => null
473473
};
474474
let arraySetWrapHandlersOptions = {
475-
arraySetWrapHandlers: arraySetWrapHandlers,
475+
arraySetWrapHandlers,
476476
decl: {
477477
include: false
478478
},
@@ -887,7 +887,7 @@ describe("parser", () => {
887887
format: {
888888
pretty: false
889889
},
890-
typeHandlers: typeHandlers
890+
typeHandlers
891891
};
892892

893893
let typeHandlersWildcard: ITypeHandlers = {

test/src/options.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ describe("options", () => {
5858
describe("arraySetWrapHandlers", () => {
5959
it("should leave the specified property unchanged if valid", () => {
6060
let arraySetWrapHandlers: IArraySetWrapHandlers = {
61-
"test1": function() {
61+
"test1": () => {
6262
return "test2";
6363
},
64-
"test3": function() {
64+
"test3": () => {
6565
return "test4";
6666
}
6767
};
6868
let options = {
69-
arraySetWrapHandlers: arraySetWrapHandlers
69+
arraySetWrapHandlers
7070
};
7171
let stringifiedOptions = JSON.stringify(
7272
options.arraySetWrapHandlers);
@@ -338,15 +338,15 @@ describe("options", () => {
338338
describe("typeHandlers", () => {
339339
it("should leave the specified property unchanged if valid", () => {
340340
let typeHandlers: ITypeHandlers = {
341-
"test1": function() {
341+
"test1": () => {
342342
return "test2";
343343
},
344-
"test3": function() {
344+
"test3": () => {
345345
return "test4";
346346
}
347347
};
348348
let options = {
349-
typeHandlers: typeHandlers
349+
typeHandlers
350350
};
351351
let stringifiedOptions = JSON.stringify(
352352
options.typeHandlers);

tslint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
true,
66
80
77
],
8+
"object-literal-key-quotes": [
9+
false
10+
],
811
"one-line": [
912
true,
1013
"check-catch",

0 commit comments

Comments
 (0)