Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit cb5cc1e

Browse files
ajafffadidahiya
authored andcommitted
Speed up test for --project --fix (#3153)
1 parent d63a434 commit cb5cc1e

File tree

2 files changed

+7
-18
lines changed

2 files changed

+7
-18
lines changed

test/files/project-multiple-fixes/before.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ const DefaultOptions = {
55
new winston.transports.Console({
66
json: true,
77
colorize: true,
8-
stringify:true
8+
stringify: true
99
})],
10-
rewriters:[
11-
(level,message,meta)=>{
12-
if(meta)
10+
rewriters: [
11+
(level, message, meta) => {
12+
if (meta)
1313
{
1414
meta.timeStamp = new Date();
1515
}
16-
return meta;
16+
return meta;
1717
}
1818
]
1919

2020

2121
};
2222

23-
export const Logger = new winston.Logger(DefaultOptions);
23+
export const Logger = new winston.Logger(DefaultOptions);

test/files/project-multiple-fixes/tslint.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,11 @@
22
"rules": {
33
"no-consecutive-blank-lines": true,
44
"no-trailing-whitespace": true,
5-
"whitespace": [
6-
true,
7-
"check-branch",
8-
"check-operator",
9-
"check-preblock",
10-
"check-separator",
11-
"check-decl",
12-
"check-module",
13-
"check-type",
14-
"check-typecast"
15-
],
165
"trailing-comma": [
176
true, {
187
"multiline": "always"
198
}
209
],
2110
"eofline": true
2211
}
23-
}
12+
}

0 commit comments

Comments
 (0)