Skip to content

Commit e0203d4

Browse files
committed
refactor(grids): lint updates#10506
1 parent 4fa6550 commit e0203d4

File tree

58 files changed

+124
-185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+124
-185
lines changed

projects/igniteui-angular/src/lib/carousel/carousel.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
317317
*
318318
* @memberOf IgxCarouselComponent
319319
*/
320-
@Output() public onSlideChanged = new EventEmitter<ISlideEventArgs>();
320+
@Output() public slideChanged = new EventEmitter<ISlideEventArgs>();
321321

322322
/**
323323
* An event that is emitted after a slide has been added to the carousel.
@@ -328,7 +328,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
328328
*
329329
* @memberOf IgxCarouselComponent
330330
*/
331-
@Output() public onSlideAdded = new EventEmitter<ISlideEventArgs>();
331+
@Output() public slideAdded = new EventEmitter<ISlideEventArgs>();
332332

333333
/**
334334
* An event that is emitted after a slide has been removed from the carousel.
@@ -339,7 +339,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
339339
*
340340
* @memberOf IgxCarouselComponent
341341
*/
342-
@Output() public onSlideRemoved = new EventEmitter<ISlideEventArgs>();
342+
@Output() public slideRemoved = new EventEmitter<ISlideEventArgs>();
343343

344344
/**
345345
* An event that is emitted after the carousel has been paused.
@@ -350,7 +350,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
350350
*
351351
* @memberOf IgxCarouselComponent
352352
*/
353-
@Output() public onCarouselPaused = new EventEmitter<IgxCarouselComponent>();
353+
@Output() public carouselPaused = new EventEmitter<IgxCarouselComponent>();
354354

355355
/**
356356
* An event that is emitted after the carousel has resumed transitioning between `slides`.
@@ -361,7 +361,7 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
361361
*
362362
* @memberOf IgxCarouselComponent
363363
*/
364-
@Output() public onCarouselPlaying = new EventEmitter<IgxCarouselComponent>();
364+
@Output() public carouselPlaying = new EventEmitter<IgxCarouselComponent>();
365365

366366
@ViewChild('defaultIndicator', { read: TemplateRef, static: true })
367367
private defaultIndicator: TemplateRef<any>;

projects/igniteui-angular/src/lib/core/displayDensity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const DisplayDensityToken = new InjectionToken<IDisplayDensityOptions>('D
3737
// eslint-disable-next-line @angular-eslint/directive-class-suffix
3838
export class DisplayDensityBase implements DoCheck, OnInit {
3939
@Output()
40-
public onDensityChanged = new EventEmitter<IDensityChangedEventArgs>();
40+
public densityChanged = new EventEmitter<IDensityChangedEventArgs>();
4141

4242
/**
4343
* Returns the theme of the component.

projects/igniteui-angular/src/lib/core/selection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class IgxSelectionAPIService {
180180
* @param componentID ID of the component, which we add new items to.
181181
* @param itemIDs Array of IDs of the items to add to component selection.
182182
*/
183-
public deselect_items(componentID: string, itemID: any[], clearSelection?: boolean) {
183+
public deselect_items(componentID: string, itemID: any[]) {
184184
this.set(componentID, this.delete_items(componentID, itemID));
185185
}
186186

projects/igniteui-angular/src/lib/core/touch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class HammerGesturesManager {
127127
* @param element The DOM element used to create the manager on.
128128
*/
129129
public getManagerForElement(element: EventTarget): HammerManager {
130-
const result = this._hammerManagers.filter((value, index, array) => value.element === element);
130+
const result = this._hammerManagers.filter((value) => value.element === element);
131131
return result.length ? result[0].manager : null;
132132
}
133133

projects/igniteui-angular/src/lib/core/utils.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { cloneValue, mergeObjects, isObject, isDate } from './utils';
1+
import { cloneValue, isObject, isDate } from './utils';
22
import { SampleTestData } from '../test-utils/sample-test-data.spec';
33

44
describe('Utils', () => {

projects/igniteui-angular/src/lib/data-operations/filtering-condition.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class CustomFilter extends IgxFilteringOperand {
155155
super();
156156
this.append({
157157
name: 'Custom',
158-
logic: (value: any, searchVal: any, ignoreCase: boolean) => value === searchVal,
158+
logic: (value: any, searchVal: any) => value === searchVal,
159159
isUnary: false,
160160
iconName: 'starts-with'
161161
});

projects/igniteui-angular/src/lib/data-operations/filtering-condition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class IgxBooleanFilteringOperand extends IgxFilteringOperand {
7777
name: 'all',
7878
isUnary: true,
7979
iconName: 'select-all',
80-
logic: (target: boolean) => true
80+
logic: () => true
8181
}, {
8282
name: 'true',
8383
isUnary: true,

projects/igniteui-angular/src/lib/data-operations/filtering-expressions-tree.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class FilteringExpressionsTree implements IFilteringExpressionsTree {
3838
*
3939
* @memberof FilteringExpressionsTree
4040
*/
41-
filteringOperands: (IFilteringExpressionsTree | IFilteringExpression)[] = [];
41+
public filteringOperands: (IFilteringExpressionsTree | IFilteringExpression)[] = [];
4242

4343
/**
4444
* Sets/gets the operator.
@@ -51,7 +51,7 @@ export class FilteringExpressionsTree implements IFilteringExpressionsTree {
5151
*
5252
* @memberof FilteringExpressionsTree
5353
*/
54-
operator: FilteringLogic;
54+
public operator: FilteringLogic;
5555

5656
/**
5757
* Sets/gets the field name of the column where the filtering expression is placed.
@@ -64,7 +64,7 @@ export class FilteringExpressionsTree implements IFilteringExpressionsTree {
6464
*
6565
* @memberof FilteringExpressionsTree
6666
*/
67-
fieldName?: string;
67+
public fieldName?: string;
6868

6969
/**
7070
* Sets/gets the type of the filtering expressions tree.
@@ -77,7 +77,7 @@ export class FilteringExpressionsTree implements IFilteringExpressionsTree {
7777
*
7878
* @memberof FilteringExpressionsTree
7979
*/
80-
type?: FilteringExpressionsTreeType;
80+
public type?: FilteringExpressionsTreeType;
8181

8282
constructor(operator: FilteringLogic, fieldName?: string) {
8383
this.operator = operator;

projects/igniteui-angular/src/lib/directives/button/button.directive.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ describe('IgxButton', () => {
158158
})
159159
class InitButtonComponent {
160160
@ViewChild(IgxButtonDirective, { read: IgxButtonDirective, static: true })
161-
button: IgxButtonDirective;
161+
public button: IgxButtonDirective;
162162
}
163163

164164
@Component({
@@ -189,11 +189,11 @@ class ButtonWithAttribsComponent {
189189
`
190190
})
191191
class ButtonsWithDisplayDensityComponent {
192-
@ViewChild('flat', { read: IgxButtonDirective, static: true }) flatButton: IgxButtonDirective;
193-
@ViewChild('raised', { read: IgxButtonDirective, static: true }) raisedButton: IgxButtonDirective;
194-
@ViewChild('outlined', { read: IgxButtonDirective, static: true }) outlinedButton: IgxButtonDirective;
195-
@ViewChild('fab', { read: IgxButtonDirective, static: true }) fabButton: IgxButtonDirective;
196-
@ViewChild('icon', { read: IgxButtonDirective, static: true }) iconButton: IgxButtonDirective;
192+
@ViewChild('flat', { read: IgxButtonDirective, static: true }) public flatButton: IgxButtonDirective;
193+
@ViewChild('raised', { read: IgxButtonDirective, static: true }) public raisedButton: IgxButtonDirective;
194+
@ViewChild('outlined', { read: IgxButtonDirective, static: true }) public outlinedButton: IgxButtonDirective;
195+
@ViewChild('fab', { read: IgxButtonDirective, static: true }) public fabButton: IgxButtonDirective;
196+
@ViewChild('icon', { read: IgxButtonDirective, static: true }) public iconButton: IgxButtonDirective;
197197

198198
public density: DisplayDensity = DisplayDensity.comfortable;
199199
}

projects/igniteui-angular/src/lib/directives/divider/divider.directive.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class IgxDividerDirective {
4848
public type: IgxDividerType | string = IgxDividerType.SOLID;
4949

5050
@HostBinding('class.igx-divider--dashed')
51-
get isDashed() {
51+
public get isDashed() {
5252
return this.type === IgxDividerType.DASHED;
5353
}
5454

@@ -83,7 +83,7 @@ export class IgxDividerDirective {
8383
* ```
8484
*/
8585
@HostBinding('style.margin')
86-
set inset(value: string) {
86+
public set inset(value: string) {
8787
this._inset = value;
8888
}
8989

@@ -94,7 +94,7 @@ export class IgxDividerDirective {
9494
* const inset = this.divider.inset;
9595
* ```
9696
*/
97-
get inset() {
97+
public get inset() {
9898
const baseMargin = '0';
9999

100100
if (this.middle) {
@@ -127,7 +127,7 @@ export class IgxDividerDirective {
127127
* const isDefault = this.divider.isDefault;
128128
* ```
129129
*/
130-
get isSolid() {
130+
public get isSolid() {
131131
return this.type === IgxDividerType.SOLID;
132132
}
133133
}

0 commit comments

Comments
 (0)