Skip to content

Commit 94068dc

Browse files
committed
chore: update for eslint-plugin-sonarjs v1
Our config is now called 'legacy', and applied updates. Signed-off-by: Tim deBoer <[email protected]>
1 parent 1fc9e0d commit 94068dc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"plugin:import/recommended",
1313
"plugin:import/typescript",
1414
"plugin:etc/recommended",
15-
"plugin:sonarjs/recommended"
15+
"plugin:sonarjs/recommended-legacy"
1616
],
1717
"parser": "@typescript-eslint/parser",
1818
"parserOptions": {

packages/backend/src/container-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export async function deleteOldImages(engineId: string, currentImage: string) {
108108
if (image.engineId === engineId && image.RepoTags) {
109109
let found = false;
110110
let otherTags = false;
111-
image.RepoTags.map(repoTag => {
111+
image.RepoTags.forEach(repoTag => {
112112
const indexTag = repoTag.lastIndexOf(':');
113113
const name = repoTag.slice(0, indexTag);
114114
const tag = repoTag.slice(indexTag + 1);

packages/backend/src/history.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class History {
6868
}
6969

7070
public async removeBuildInfo(buildInfo: BootcBuildInfo): Promise<void> {
71-
this.infos = this.infos.filter(info => !(info.id === buildInfo.id));
71+
this.infos = this.infos.filter(info => info.id !== buildInfo.id);
7272
await this.saveFile();
7373
}
7474

0 commit comments

Comments
 (0)