Skip to content

Commit

Permalink
feat: enable angular-eslint prefer-signals rule
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinderoubaix committed Dec 9, 2024
1 parent 7ec69f9 commit 26adb1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {Component, computed} from '@angular/core';
export default class HashPaginationComponent {
hash = toAngularSignal(hash$);

pageNumber = computed(() => +(this.hash().split('#')[1] ?? 4));
readonly pageNumber = computed(() => +(this.hash().split('#')[1] ?? 4));

pageLink = (currentPage: number) => `#${this.hash().split('#')[0]}#${currentPage}`;

Expand Down
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export default tseslint.config(
style: 'kebab-case',
},
],
'@angular-eslint/prefer-signals': 'error',
},
},
{
Expand Down

0 comments on commit 26adb1b

Please sign in to comment.