Skip to content

Commit

Permalink
fix: changed lint rule for dot annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
EragonJ committed May 20, 2024
1 parent 6f40af9 commit 6a789bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
rules: {
indent: ["error", 2, { "MemberExpression": 1 }],
},
};
24 changes: 10 additions & 14 deletions src/lib/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@ class Image implements IImage {
headers: {
Authorization: `Bearer ${this.apiKey}`,
},
})
.then((response) => {
return response.json();
})
.then((response) => {
return response.data;
});
}).then((response) => {
return response.json();
}).then((response) => {
return response.data;
});
}

getUntilFinished(renderingId: string, retried = 0): Promise<Rendering> {
Expand Down Expand Up @@ -71,13 +69,11 @@ class Image implements IImage {
Authorization: `Bearer ${this.apiKey}`,
},
body: JSON.stringify(data),
})
.then((response) => {
return response.json();
})
.then((response) => {
return response.data;
});
}).then((response) => {
return response.json();
}).then((response) => {
return response.data;
});
}
}

Expand Down

0 comments on commit 6a789bc

Please sign in to comment.