Skip to content

Commit 8829b07

Browse files
committed
chore: run prettier against types
1 parent 9d65e0a commit 8829b07

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"lint-staged": {
6161
"**/*.js": [
6262
"eslint --fix",
63-
"prettier --write"
63+
"prettier '**/*.{js,ts}' --write"
6464
]
6565
}
6666
}

packages/app-info/types/index.d.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,34 @@ declare module '@dotcom-reliability-kit/app-info' {
1414

1515
export type SemanticConventions = {
1616
cloud: {
17-
provider?: string,
18-
region?: string
19-
},
17+
provider?: string;
18+
region?: string;
19+
};
2020
deployment: {
21-
environment: string
22-
},
21+
environment: string;
22+
};
2323
service: {
24-
name?: string
25-
version?: string,
24+
name?: string;
25+
version?: string;
2626
instance: {
27-
id: string
28-
}
29-
}
27+
id: string;
28+
};
29+
};
3030
};
3131

3232
type appInfo = {
33-
systemCode: typeof systemCode,
34-
processType: typeof processType,
35-
commitHash: typeof commitHash,
36-
environment: typeof environment,
37-
region: typeof region,
38-
releaseDate: typeof releaseDate,
39-
releaseVersion: typeof releaseVersion,
40-
cloudProvider: typeof cloudProvider,
41-
herokuAppId: typeof herokuAppId,
42-
herokuDynoId: typeof herokuDynoId,
43-
instanceId: typeof instanceId,
44-
semanticConventions: SemanticConventions
33+
systemCode: typeof systemCode;
34+
processType: typeof processType;
35+
commitHash: typeof commitHash;
36+
environment: typeof environment;
37+
region: typeof region;
38+
releaseDate: typeof releaseDate;
39+
releaseVersion: typeof releaseVersion;
40+
cloudProvider: typeof cloudProvider;
41+
herokuAppId: typeof herokuAppId;
42+
herokuDynoId: typeof herokuDynoId;
43+
instanceId: typeof instanceId;
44+
semanticConventions: SemanticConventions;
4545
};
4646

4747
export default appInfo;

test/modules/ts-commonjs/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ type TypeTests = {
1919
// to rethink the way we build our type definitions in order to
2020
// support TypeScript written as CommonJS properly.
2121
logger2: Logger;
22-
22+
2323
// These test that appInfo can be imported either
2424
// as a default or named exports
25-
environment1: string,
26-
environment2: string
25+
environment1: string;
26+
environment2: string;
2727
};
2828

2929
const result: TypeTests = {

0 commit comments

Comments
 (0)