Skip to content

Commit 0a12052

Browse files
committed
lint
1 parent f031a06 commit 0a12052

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

scripts/generate-oas.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ export function getAPIDetailsFromExchange(directory: string): ApiSpecDetail {
8383
return {
8484
filepath: path.join(directory, exchangeConfig.main),
8585
filename: exchangeConfig.main,
86-
directoryName: resolveDirectoryName(exchangeConfig.assetId.replace('-oas', ''), exchangeConfig.apiVersion),
86+
directoryName: resolveDirectoryName(
87+
exchangeConfig.assetId.replace('-oas', ''),
88+
exchangeConfig.apiVersion
89+
),
8790
name:
8891
exchangeConfig.apiVersion === 'v2'
8992
? `${exchangeConfig.name} V2`
@@ -99,7 +102,10 @@ export function getAPIDetailsFromExchange(directory: string): ApiSpecDetail {
99102
*/
100103
export function generateSDKs(apiSpecDetail: ApiSpecDetail): void {
101104
const {filepath, name, directoryName} = apiSpecDetail;
102-
if (fs.statSync(filepath).isFile() && (filepath.includes('shopper') || filepath.includes('auth'))) {
105+
if (
106+
fs.statSync(filepath).isFile() &&
107+
(filepath.includes('shopper') || filepath.includes('auth'))
108+
) {
103109
try {
104110
console.log(`Generating SDK for ${name}`);
105111
const outputDir = `${TARGET_DIRECTORY}/${directoryName}`;

scripts/generateVersionTable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function generateVersionTable(apiVersions: ApiVersion[]): string {
5151
table += '|----------|-------------|\n';
5252

5353
apiVersions.forEach(api => {
54-
let displayName = api.name
54+
let displayName = api.name;
5555
if (api.name === 'auth') {
5656
displayName = 'shopper-login';
5757
}

0 commit comments

Comments
 (0)