Skip to content

Commit

Permalink
fix(eslint-plugin-experience): valid detection TuiDestroyService
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed May 7, 2024
1 parent 614d709 commit 9817fb9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions projects/eslint-plugin-experience/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,12 +595,6 @@ module.exports = {
importNames: ['Inject'],
message: 'Please use `inject(Type)` function instead.',
},
{
group: ['@taiga-ui/cdk'],
importNames: ['TuiDestroyService'],
message:
'Please use `takeUntilDestroyed()` function instead.',
},
],
},
],
Expand All @@ -611,6 +605,11 @@ module.exports = {
'Don\'t declare enums, please use "const MyEnumType = { ... } as const;"',
selector: 'TSEnumDeclaration',
},
{
message:
"Don't use TuiDestroyService, please use `takeUntilDestroyed()` function instead.",
selector: "Identifier[name='TuiDestroyService']",
},
{
message:
'Use `map(() => value)` instead of `mapTo(value)`, the operator is deprecated',
Expand Down

0 comments on commit 9817fb9

Please sign in to comment.