Skip to content

Commit 0f245b3

Browse files
committed
chore(lib): fix tests, eslint setup improvement
1 parent 67980dd commit 0f245b3

File tree

5 files changed

+249
-13
lines changed

5 files changed

+249
-13
lines changed

package-lock.json

Lines changed: 236 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"raw-loader": "^4.0.2",
9898
"replace": "^1.2.0",
9999
"standard-version": "^9.3.0",
100+
"ts-node": "^10.9.2",
100101
"typescript": "5.5.3",
101102
"webpack-bundle-analyzer": "^4.4.1"
102103
},

projects/elements/.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"createDefaultProgram": true
1313
},
1414
"rules": {
15+
"@angular-eslint/no-input-rename": ["off"],
1516
"@angular-eslint/directive-selector": [
1617
"error",
1718
{

projects/elements/src/lib/lazy-elements/lazy-element-dynamic/lazy-element-dynamic.directive.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@ const LOG_PREFIX = '@angular-extensions/elements';
2626
})
2727
export class LazyElementDynamicDirective implements OnInit {
2828
@Input('axLazyElementDynamic') tag: string | null = null;
29-
@Input('axLazyElementDynamicUrl') url: string | null = null; // eslint-disable-line @angular-eslint/no-input-rename
30-
@Input('axLazyElementDynamicLoadingTemplate') // eslint-disable-line @angular-eslint/no-input-rename
29+
@Input('axLazyElementDynamicUrl') url: string | null = null;
30+
@Input('axLazyElementDynamicLoadingTemplate')
3131
loadingTemplateRef: TemplateRef<any> | null = null;
32-
@Input('axLazyElementDynamicErrorTemplate') // eslint-disable-line @angular-eslint/no-input-rename
32+
@Input('axLazyElementDynamicErrorTemplate')
3333
errorTemplateRef: TemplateRef<any> | null = null;
34-
@Input('axLazyElementDynamicModule') isModule = false; // eslint-disable-line @angular-eslint/no-input-rename
35-
@Input('axLazyElementDynamicImportMap') importMap = false; // eslint-disable-line @angular-eslint/no-input-rename
36-
@Input('axLazyElementLoadingSuccess') loadingSuccess?: () => void; // eslint-disable-line @angular-eslint/no-input-rename
37-
// eslint-disable-next-line @angular-eslint/no-input-rename
34+
@Input('axLazyElementDynamicModule') isModule = false;
35+
@Input('axLazyElementDynamicImportMap') importMap = false;
36+
@Input('axLazyElementLoadingSuccess') loadingSuccess?: () => void;
3837
@Input('axLazyElementLoadingError') loadingError?: (
3938
error: ErrorEvent,
4039
) => void;

projects/elements/src/lib/lazy-elements/lazy-element/lazy-element.directive.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ export class LazyElementDirective implements OnInit, OnChanges {
4444
readonly #elementsLoaderService = inject(LazyElementsLoaderService);
4545

4646
@Input('axLazyElement') url: string | null = null;
47-
@Input('axLazyElementLoadingTemplate') // eslint-disable-line @angular-eslint/no-input-rename
47+
@Input('axLazyElementLoadingTemplate')
4848
loadingTemplateRef: TemplateRef<any> | null = null;
49-
@Input('axLazyElementErrorTemplate') // eslint-disable-line @angular-eslint/no-input-rename
49+
@Input('axLazyElementErrorTemplate')
5050
errorTemplateRef: TemplateRef<any> | null = null;
51-
@Input('axLazyElementModule') isModule?: boolean; // eslint-disable-line @angular-eslint/no-input-rename
52-
@Input('axLazyElementImportMap') importMap = false; // eslint-disable-line @angular-eslint/no-input-rename
53-
@Input('axLazyElementLoadingSuccess') loadingSuccess?: () => void; // eslint-disable-line @angular-eslint/no-input-rename
54-
// eslint-disable-next-line @angular-eslint/no-input-rename
51+
@Input('axLazyElementModule') isModule?: boolean;
52+
@Input('axLazyElementImportMap') importMap = false;
53+
@Input('axLazyElementLoadingSuccess') loadingSuccess?: () => void;
5554
@Input('axLazyElementLoadingError') loadingError?: (
5655
error: ErrorEvent,
5756
) => void;

0 commit comments

Comments
 (0)