Skip to content

Commit a9f05ec

Browse files
Try to fix lint errors
1 parent f9c09e5 commit a9f05ec

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Angular/src/app/app.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-non-null-assertion, no-else-return, no-console, no-void */
12
import { Component } from '@angular/core';
23
import { firstValueFrom } from 'rxjs';
34
import { ColorService, Color } from './app.service';

jQuery/src/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console, default-case */
12
const total = 100;
23
let colors = [];
34
const hexCodes = [];
@@ -31,7 +32,9 @@ const getRandomPastelColor = () => {
3132
};
3233

3334
const hsvToHex = (h, s, v) => {
34-
let r = 0, g = 0, b = 0;
35+
let r = 0;
36+
let g = 0;
37+
let b = 0;
3538
const i = Math.floor(h / 60);
3639
const f = h / 60 - i;
3740
const p = v * (1 - s);
@@ -75,7 +78,7 @@ const renderCards = async (pageSize, pageIndex) => {
7578
};
7679

7780
$(() => {
78-
for (let i = 0; i < total; i++) {
81+
for (let i = 0; i < total; i+=1) {
7982
hexCodes.push(getRandomPastelColor());
8083
}
8184

0 commit comments

Comments
 (0)