fixed linting issues
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -44,3 +44,4 @@ Thumbs.db
|
|||||||
|
|
||||||
# Lighthouse
|
# Lighthouse
|
||||||
.lighthouseci/
|
.lighthouseci/
|
||||||
|
.claude/settings.local.json
|
||||||
|
|||||||
22
package-lock.json
generated
22
package-lock.json
generated
@@ -30,6 +30,7 @@
|
|||||||
"@angular/build": "~21.2.1",
|
"@angular/build": "~21.2.1",
|
||||||
"@angular/cli": "~21.2.1",
|
"@angular/cli": "~21.2.1",
|
||||||
"@angular/compiler-cli": "~21.2.1",
|
"@angular/compiler-cli": "~21.2.1",
|
||||||
|
"@eslint/js": "~10.0.1",
|
||||||
"@lhci/cli": "^0.15.1",
|
"@lhci/cli": "^0.15.1",
|
||||||
"@types/jasmine": "~6.0.0",
|
"@types/jasmine": "~6.0.0",
|
||||||
"angular-eslint": "21.3.0",
|
"angular-eslint": "21.3.0",
|
||||||
@@ -1626,6 +1627,27 @@
|
|||||||
"node": "^20.19.0 || ^22.13.0 || >=24"
|
"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": {
|
"node_modules/@eslint/object-schema": {
|
||||||
"version": "3.0.3",
|
"version": "3.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.3.tgz",
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
"@angular/build": "~21.2.1",
|
"@angular/build": "~21.2.1",
|
||||||
"@angular/cli": "~21.2.1",
|
"@angular/cli": "~21.2.1",
|
||||||
"@angular/compiler-cli": "~21.2.1",
|
"@angular/compiler-cli": "~21.2.1",
|
||||||
|
"@eslint/js": "~10.0.1",
|
||||||
"@lhci/cli": "^0.15.1",
|
"@lhci/cli": "^0.15.1",
|
||||||
"@types/jasmine": "~6.0.0",
|
"@types/jasmine": "~6.0.0",
|
||||||
"angular-eslint": "21.3.0",
|
"angular-eslint": "21.3.0",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="sliders-panel">
|
<div class="sliders-panel">
|
||||||
<label>{{ 'CLOTH.ELONGATION' | translate }}: {{ elongation }}</label>
|
<span>{{ 'CLOTH.ELONGATION' | translate }}: {{ elongation }}</span>
|
||||||
<mat-slider min="0.5" max="2.0" step="0.1">
|
<mat-slider min="0.5" max="2.0" step="0.1">
|
||||||
<input matSliderThumb [(ngModel)]="elongation">
|
<input matSliderThumb [(ngModel)]="elongation">
|
||||||
</mat-slider>
|
</mat-slider>
|
||||||
|
|||||||
@@ -178,10 +178,9 @@ export class ConwayGolComponent implements AfterViewInit {
|
|||||||
|
|
||||||
async startGame(): Promise<void> {
|
async startGame(): Promise<void> {
|
||||||
this.gameStarted.set(true);
|
this.gameStarted.set(true);
|
||||||
let lifeIsDead = false;
|
|
||||||
while (this.gameStarted()){
|
while (this.gameStarted()){
|
||||||
const startTime = performance.now();
|
const startTime = performance.now();
|
||||||
lifeIsDead = true;
|
let lifeIsDead = true;
|
||||||
for (let row = 0; row < this.gridRows; row++) {
|
for (let row = 0; row < this.gridRows; row++) {
|
||||||
for (let col = 0; col < this.gridCols; col++) {
|
for (let col = 0; col < this.gridCols; col++) {
|
||||||
lifeIsDead = this.checkLifeRules(row, col, this.writeGrid) && lifeIsDead;
|
lifeIsDead = this.checkLifeRules(row, col, this.writeGrid) && lifeIsDead;
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export class SortingService {
|
|||||||
|
|
||||||
let start = -1;
|
let start = -1;
|
||||||
let end = array.length-1;
|
let end = array.length-1;
|
||||||
let changed = false;
|
let changed: boolean;
|
||||||
do {
|
do {
|
||||||
changed = false;
|
changed = false;
|
||||||
start += 1;
|
start += 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user