File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 11{
2- "$schema" : " https://biomejs.dev/schemas/1.8.3/schema.json" ,
3- "organizeImports" : {
4- "enabled" : true
5- },
2+ "root" : false ,
3+ "$schema" : " https://biomejs.dev/schemas/2.2.4/schema.json" ,
4+ "assist" : { "actions" : { "source" : { "organizeImports" : " on" } } },
65 "formatter" : {
76 "enabled" : false ,
87 "lineWidth" : 100 ,
2019 }
2120 },
2221 "files" : {
23- "include" : [" src/**/*" ],
24- "ignore" : [" dist/**/*" , " node_modules/**/*" ]
22+ "includes" : [" **/src/**/*" , " !**/dist/**/*" , " !**/node_modules/**/*" ]
2523 }
2624}
Original file line number Diff line number Diff line change 11{
2- "$schema" : " https://biomejs.dev/schemas/1.8.3/schema.json" ,
3- "organizeImports" : {
4- "enabled" : true
5- },
2+ "root" : false ,
3+ "$schema" : " https://biomejs.dev/schemas/2.2.4/schema.json" ,
4+ "assist" : { "actions" : { "source" : { "organizeImports" : " on" } } },
65 "formatter" : {
76 "enabled" : false ,
87 "lineWidth" : 100 ,
2019 }
2120 },
2221 "files" : {
23- "include" : [" ./src/**/*" ],
24- "ignore" : [" ./dist/**/*" , " ./src/client/shared/exec-match.ts" , " node_modules/**/*" ]
22+ "includes" : [
23+ " src/**/*" ,
24+ " !dist/**/*" ,
25+ " !src/client/shared/exec-match.ts" ,
26+ " !**/node_modules/**/*"
27+ ]
2528 }
2629}
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ const timeTags = new Map<string, number>();
77 * @returns The elapsed time in milliseconds, or undefined if this is the first call with the tag.
88 */
99export function measureTime ( tag : string ) : number | undefined {
10- const now =
11- typeof performance !== "undefined" && performance . now ? performance . now ( ) : Date . now ( ) ;
10+ const now = performance ?. now ? performance . now ( ) : Date . now ( ) ;
1211
1312 const last = timeTags . get ( tag ) ;
1413 timeTags . set ( tag , now ) ;
You can’t perform that action at this time.
0 commit comments