Skip to content

Commit ab77be5

Browse files
fix lint
1 parent c10c5a3 commit ab77be5

2 files changed

Lines changed: 27 additions & 27 deletions

File tree

packages/devextreme-angular/src/core/component.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ import {
3737
INestedOptionContainer,
3838
ICollectionNestedOption,
3939
ICollectionNestedOptionContainer,
40-
CollectionNestedOptionContainerImpl,
40+
CollectionNestedOptionContainerImpl,
4141
_updateNestedItems,
42-
NESTED_ITEM_TOKEN
42+
NESTED_ITEM_TOKEN,
4343
} from './nested-option';
4444

4545
import { DxIntegrationModule } from './integration';
@@ -71,14 +71,14 @@ export abstract class DxComponent implements OnChanges, OnInit, DoCheck, AfterCo
7171
private readonly _collectionContainerImpl: ICollectionNestedOptionContainer;
7272

7373
@ContentChildren(NESTED_ITEM_TOKEN)
74-
set _nestedItems(value: QueryList<{ propertyName: string, className: string, component: ICollectionNestedOption}>) {
74+
set _nestedItems(value: QueryList<{ propertyName: string; className: string; component: ICollectionNestedOption }>) {
7575
_updateNestedItems(
76-
value,
77-
this.setChildren.bind(this),
78-
{
79-
componentClassName: this.constructor.name,
80-
legacyClassNames: this.getLegacyClassNames(),
81-
}
76+
value,
77+
this.setChildren.bind(this),
78+
{
79+
componentClassName: this.constructor.name,
80+
legacyClassNames: this.getLegacyClassNames(),
81+
},
8282
);
8383
}
8484

@@ -315,7 +315,7 @@ export abstract class DxComponent implements OnChanges, OnInit, DoCheck, AfterCo
315315
this.templateUpdateRequired = true;
316316
}
317317

318-
protected getLegacyClassNames: () => Record<string, string[]> = () => ({});
318+
protected getLegacyClassNames: () => Record<string, string[]> = () => ({});
319319

320320
setChildren<T extends ICollectionNestedOption>(propertyName: string, items: QueryList<T>) {
321321
this.resetOptions(propertyName);

packages/devextreme-angular/src/core/nested-option.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import render from 'devextreme/core/renderer';
66
import { triggerHandler } from 'devextreme/events';
77
import domAdapter from 'devextreme/core/dom_adapter';
88
import { getElement } from './utils';
9-
import { DX_TEMPLATE_WRAPPER_CLASS } from './template';
9+
import { DX_TEMPLATE_WRAPPER_CLASS } from './template';
1010

1111
export const NESTED_ITEM_TOKEN = new InjectionToken<string>('nested-item');
1212

@@ -30,16 +30,16 @@ const warnAboutIncompatibleNestedItems = (containerClassName: string, itemClassN
3030
the nested ${itemClassName} and ${anotherItemClassName} components are incompatible.
3131
Ensure that all nested components in the content area match.`);
3232
}
33-
}
33+
};
3434

3535
export const _updateNestedItems = (
36-
items: QueryList<{ propertyName: string, className: string, component: ICollectionNestedOption}>,
37-
setChildrenFn: (propertyName: string, items: QueryList<ICollectionNestedOption>) => void,
38-
{ componentClassName, legacyClassNames }: { componentClassName: string, legacyClassNames: Record<string, string[]> }
36+
items: QueryList<{ propertyName: string; className: string; component: ICollectionNestedOption }>,
37+
setChildrenFn: (propertyName: string, items: QueryList<ICollectionNestedOption>) => void,
38+
{ componentClassName, legacyClassNames }: { componentClassName: string; legacyClassNames: Record<string, string[]> },
3939
) => {
40-
let hasLegacy = {};
41-
const groupedItems = {}
42-
40+
const hasLegacy = {};
41+
const groupedItems = {};
42+
4343
for (let index = 0; index < items.length; index++) {
4444
const { propertyName, className, component } = items.get(index);
4545

@@ -48,7 +48,7 @@ export const _updateNestedItems = (
4848

4949
if (legacyClassNames) {
5050
const isLegacyClassName = legacyClassNames[propertyName].includes(className);
51-
51+
5252
if (index === 0) {
5353
hasLegacy[propertyName] = isLegacyClassName;
5454
} else if (hasLegacy[propertyName] !== isLegacyClassName) {
@@ -248,17 +248,17 @@ export abstract class CollectionNestedOption extends BaseNestedOption implements
248248
_index: number;
249249

250250
@ContentChildren(NESTED_ITEM_TOKEN)
251-
set _nestedItems(value: QueryList<{ propertyName: string, className: string, component: ICollectionNestedOption}>) {
251+
set _nestedItems(value: QueryList<{ propertyName: string; className: string; component: ICollectionNestedOption }>) {
252252
_updateNestedItems(
253-
value,
254-
this.setChildren.bind(this),
255-
{
256-
componentClassName: this.constructor.name,
257-
legacyClassNames: null,
258-
}
253+
value,
254+
this.setChildren.bind(this),
255+
{
256+
componentClassName: this.constructor.name,
257+
legacyClassNames: null,
258+
},
259259
);
260260
}
261-
261+
262262
protected _fullOptionPath() {
263263
return `${this._getOptionPath()}[${this._index}].`;
264264
}

0 commit comments

Comments
 (0)