Skip to content

Commit 84e36e5

Browse files
committed
chore: turn-off no-input-rename eslint rule
Resolve #1392
1 parent 4329422 commit 84e36e5

File tree

4 files changed

+14
-22
lines changed

4 files changed

+14
-22
lines changed

libs/template/.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"style": "kebab-case"
4242
}
4343
],
44+
"@angular-eslint/no-input-rename": "off",
4445
"@typescript-eslint/no-non-null-assertion": "warn"
4546
}
4647
},

libs/template/experimental/for/src/lib/for.directive.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ import {
1212
OnInit,
1313
TemplateRef,
1414
TrackByFunction,
15-
ViewContainerRef,
15+
ViewContainerRef
1616
} from '@angular/core';
17+
import { coerceDistinctWith } from '@rx-angular/cdk/coercing';
18+
import { RxStrategyProvider } from '@rx-angular/cdk/render-strategies';
1719
import {
1820
createListTemplateManager,
1921
RxListManager,
2022
RxListViewComputedContext,
21-
RxListViewContext,
23+
RxListViewContext
2224
} from '@rx-angular/cdk/template';
23-
import { RxStrategyProvider } from '@rx-angular/cdk/render-strategies';
24-
import { coerceDistinctWith } from '@rx-angular/cdk/coercing';
2525

2626
import { Observable, ReplaySubject, Subject, Subscription } from 'rxjs';
2727
import { RxForViewContext } from './for-view-context';
@@ -364,8 +364,6 @@ export class RxFor<T, U extends NgIterable<T> = NgIterable<T>>
364364
this.strategyInput$.next(strategyName);
365365
}
366366

367-
/* @todo: rename to `rxRenderParent`? */
368-
/* eslint-disable @angular-eslint/no-input-rename */
369367
/**
370368
* @description
371369
* If `parent` is set to `true` (default to `false`), `*rxFor` will automatically detect every other `Component` where its

libs/template/experimental/if/src/lib/if.directive.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export class RxIf<U> implements OnInit, OnDestroy {
5252
this.observablesHandler.next(coerceObservable(potentialObservable));
5353
}
5454

55-
/* eslint-disable @angular-eslint/no-input-rename */
5655
@Input('rxIfStrategy')
5756
set strategy(strategyName: Observable<string> | string | null | undefined) {
5857
this.strategyHandler.next(strategyName);

libs/template/let/src/lib/let.directive.ts

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,20 @@ import {
1111
Output,
1212
SimpleChanges,
1313
TemplateRef,
14-
ViewContainerRef,
14+
ViewContainerRef
1515
} from '@angular/core';
16-
import {
17-
createTemplateManager,
18-
RxTemplateManager,
19-
RxBaseTemplateNames,
20-
RxViewContext,
21-
} from '@rx-angular/cdk/template';
22-
import {
23-
RxStrategyProvider,
24-
RxStrategyNames,
25-
} from '@rx-angular/cdk/render-strategies';
2616
import { coerceAllFactory } from '@rx-angular/cdk/coercing';
2717
import {
2818
createTemplateNotifier,
2919
RxNotification,
30-
RxNotificationKind,
20+
RxNotificationKind
3121
} from '@rx-angular/cdk/notifications';
22+
import {
23+
RxStrategyNames, RxStrategyProvider
24+
} from '@rx-angular/cdk/render-strategies';
25+
import {
26+
createTemplateManager, RxBaseTemplateNames, RxTemplateManager, RxViewContext
27+
} from '@rx-angular/cdk/template';
3228

3329
import {
3430
defer,
@@ -38,7 +34,7 @@ import {
3834
ObservableInput,
3935
ReplaySubject,
4036
Subject,
41-
Subscription,
37+
Subscription
4238
} from 'rxjs';
4339
import { mergeAll } from 'rxjs/operators';
4440

@@ -299,8 +295,6 @@ export class LetDirective<U> implements OnInit, OnDestroy, OnChanges {
299295
this._renderObserver = callback;
300296
}
301297

302-
/* @todo: Rename to `rxRenderParent`? */
303-
// eslint-disable-next-line @angular-eslint/no-input-rename
304298
@Input('rxLetParent') renderParent = this.strategyProvider.config.parent;
305299

306300
@Input('rxLetPatchZone') patchZone = this.strategyProvider.config.patchZone;

0 commit comments

Comments
 (0)