diff --git a/.gitignore b/.gitignore index 5368866..30730ba 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,4 @@ Thumbs.db # Lighthouse .lighthouseci/ +.claude/settings.local.json diff --git a/package-lock.json b/package-lock.json index 0681a96..30ac1be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,7 @@ "@angular/build": "~21.2.1", "@angular/cli": "~21.2.1", "@angular/compiler-cli": "~21.2.1", + "@eslint/js": "~10.0.1", "@lhci/cli": "^0.15.1", "@types/jasmine": "~6.0.0", "angular-eslint": "21.3.0", @@ -1626,6 +1627,27 @@ "node": "^20.19.0 || ^22.13.0 || >=24" } }, + "node_modules/@eslint/js": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz", + "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "eslint": "^10.0.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, "node_modules/@eslint/object-schema": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.3.tgz", diff --git a/package.json b/package.json index 52a2a7d..b0252c7 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "@angular/build": "~21.2.1", "@angular/cli": "~21.2.1", "@angular/compiler-cli": "~21.2.1", + "@eslint/js": "~10.0.1", "@lhci/cli": "^0.15.1", "@types/jasmine": "~6.0.0", "angular-eslint": "21.3.0", diff --git a/src/app/pages/algorithms/cloth/cloth.component.html b/src/app/pages/algorithms/cloth/cloth.component.html index 5bc709e..11d88e7 100644 --- a/src/app/pages/algorithms/cloth/cloth.component.html +++ b/src/app/pages/algorithms/cloth/cloth.component.html @@ -17,7 +17,7 @@
- + {{ 'CLOTH.ELONGATION' | translate }}: {{ elongation }} diff --git a/src/app/pages/algorithms/conway-gol/conway-gol.component.ts b/src/app/pages/algorithms/conway-gol/conway-gol.component.ts index ea54f8a..fda1c1c 100644 --- a/src/app/pages/algorithms/conway-gol/conway-gol.component.ts +++ b/src/app/pages/algorithms/conway-gol/conway-gol.component.ts @@ -178,10 +178,9 @@ export class ConwayGolComponent implements AfterViewInit { async startGame(): Promise { this.gameStarted.set(true); - let lifeIsDead = false; while (this.gameStarted()){ const startTime = performance.now(); - lifeIsDead = true; + let lifeIsDead = true; for (let row = 0; row < this.gridRows; row++) { for (let col = 0; col < this.gridCols; col++) { lifeIsDead = this.checkLifeRules(row, col, this.writeGrid) && lifeIsDead; diff --git a/src/app/pages/algorithms/sorting/service/sorting.service.ts b/src/app/pages/algorithms/sorting/service/sorting.service.ts index d81556a..fccdba1 100644 --- a/src/app/pages/algorithms/sorting/service/sorting.service.ts +++ b/src/app/pages/algorithms/sorting/service/sorting.service.ts @@ -56,7 +56,7 @@ export class SortingService { let start = -1; let end = array.length-1; - let changed = false; + let changed: boolean; do { changed = false; start += 1;