Skip to content

Commit f8c733d

Browse files
committed
Fixing lint errors
1 parent 1b1b15f commit f8c733d

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

packages/cli/templates/webcomponents/igc-ts/grid/grid-editing/files/src/app/__path__/DataGridSharedData.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class DataGridSharedData {
77
const employees: any[] = [];
88
let maleCount: number = 0;
99
let femaleCount: number = 0;
10-
for (let i = 0; i < count; i++) {
10+
for (let i = 0; i < count; i += 1) {
1111
const age: number = Math.round(this.getRandomNumber(20, 40));
1212
const gender: string = this.getRandomGender();
1313
const firstName: string = this.getRandomNameFirst(gender);
@@ -21,13 +21,13 @@ export class DataGridSharedData {
2121
let photoPath: any;
2222

2323
if (gender === 'male') {
24-
maleCount++;
24+
maleCount += 1;
2525
if (maleCount > 26) {
2626
maleCount = 1;
2727
}
2828
photoPath = this.getPhotoMale(maleCount);
2929
} else {
30-
femaleCount++;
30+
femaleCount += 1;
3131
if (femaleCount > 24) {
3232
femaleCount = 1;
3333
}
@@ -74,7 +74,7 @@ export class DataGridSharedData {
7474
weekCount = 52;
7575
}
7676
const productivity: any[] = [];
77-
for (let w = 0; w < weekCount; w++) {
77+
for (let w = 0; w < weekCount; w += 1) {
7878
const value = this.getRandomNumber(-50, 50);
7979
productivity.push({ Value: value, Week: w });
8080
}
@@ -97,7 +97,7 @@ export class DataGridSharedData {
9797
const status: string[] = ['Packing', 'Shipped', 'Delivered'];
9898
const sales: any[] = [];
9999

100-
for (let i = 0; i < count; i++) {
100+
for (let i = 0; i < count; i += 1) {
101101
const price = this.getRandomNumber(100, 900);
102102
const items = this.getRandomNumber(10, 80);
103103
const value = price * items;
@@ -132,7 +132,7 @@ export class DataGridSharedData {
132132
const emails: string[] = ['estates.com', 'remax.com', 'zillow.com', 'realtor.com', 'coldwell.com'];
133133
const countries: string[] = ['USA', 'UK', 'France', 'Canada', 'Poland', 'Japan', 'Germany'];
134134

135-
for (let i = 0; i < count; i++) {
135+
for (let i = 0; i < count; i += 1) {
136136
const year: number = this.getRandomNumber(1950, 2015);
137137
const age: number = 2020 - year;
138138

packages/cli/templates/webcomponents/igc-ts/grid/grid-summaries/files/src/app/__path__/DataGridSharedData.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class DataGridSharedData {
77
const employees: any[] = [];
88
let maleCount: number = 0;
99
let femaleCount: number = 0;
10-
for (let i = 0; i < count; i++) {
10+
for (let i = 0; i < count; i += 1) {
1111
const age: number = Math.round(this.getRandomNumber(20, 40));
1212
const gender: string = this.getRandomGender();
1313
const firstName: string = this.getRandomNameFirst(gender);
@@ -21,13 +21,13 @@ export class DataGridSharedData {
2121
let photoPath: any;
2222

2323
if (gender === 'male') {
24-
maleCount++;
24+
maleCount += 1;
2525
if (maleCount > 26) {
2626
maleCount = 1;
2727
}
2828
photoPath = this.getPhotoMale(maleCount);
2929
} else {
30-
femaleCount++;
30+
femaleCount += 1;
3131
if (femaleCount > 24) {
3232
femaleCount = 1;
3333
}
@@ -74,7 +74,7 @@ export class DataGridSharedData {
7474
weekCount = 52;
7575
}
7676
const productivity: any[] = [];
77-
for (let w = 0; w < weekCount; w++) {
77+
for (let w = 0; w < weekCount; w += 1) {
7878
const value = this.getRandomNumber(-50, 50);
7979
productivity.push({ Value: value, Week: w });
8080
}
@@ -97,7 +97,7 @@ export class DataGridSharedData {
9797
const status: string[] = ['Packing', 'Shipped', 'Delivered'];
9898
const sales: any[] = [];
9999

100-
for (let i = 0; i < count; i++) {
100+
for (let i = 0; i < count; i += 1) {
101101
const price = this.getRandomNumber(100, 900);
102102
const items = this.getRandomNumber(10, 80);
103103
const value = price * items;
@@ -132,7 +132,7 @@ export class DataGridSharedData {
132132
const emails: string[] = ['estates.com', 'remax.com', 'zillow.com', 'realtor.com', 'coldwell.com'];
133133
const countries: string[] = ['USA', 'UK', 'France', 'Canada', 'Poland', 'Japan', 'Germany'];
134134

135-
for (let i = 0; i < count; i++) {
135+
for (let i = 0; i < count; i += 1) {
136136
const year: number = this.getRandomNumber(1950, 2015);
137137
const age: number = 2020 - year;
138138

packages/cli/templates/webcomponents/igc-ts/grid/grid-summaries/files/src/app/__path__/__filePrefix__.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default class $(ClassName) extends HTMLElement {
8181

8282
public aggregate(a: any): void {
8383
if (a.Countries === 'USA') {
84-
this.usCountries++;
84+
this.usCountries += 1;
8585
}
8686
}
8787
}

0 commit comments

Comments
 (0)