question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create ESLint rule

See original GitHub issue

Is it possible to create a ESlint rule for the untilDestroyed operator? Which means that we check that every Observable in a Component should contain a untilDestroyed(this) and at the last position in the pipe chain.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
NetanelBasalcommented, Nov 2, 2020

Thanks, @cartant.

@Odonno I think that you want the following:

{
  "rxjs/no-unsafe-takeuntil": [
    "error",
    {
      "alias": ["untilDestroyed"]
    }
  ]
}

Is that right?

0reactions
brunano21commented, Aug 10, 2021

Hi @mattdsteele I’m facing the same issue, despite following the readme step-by-step. Have you got any progress eventually?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with Rules - ESLint - Pluggable JavaScript Linter
Each rule in ESLint has three files named with its identifier (for example, no-extra-semi ). in the lib/rules directory: a source file (for...
Read more >
How to write a custom ESLint rule - Scott Logic Blog
Step 1 - Create Code Examples · Step 2 - Explore Your AST · Step 3 - Find Your Entry Point · Step...
Read more >
How to Create Custom ESLint Rules (It's Not as Hard as You ...
You can start using xgh/no-testing in your project right now! Run the command npm i -D eslint-plugin-xgh to install the ESLint plugin that...
Read more >
Creating Custom Eslint Rules - Better Programming
This article will explain how to create your own custom ESLint rules and create a script with the ESLint module that will be...
Read more >
Create custom ESLint rules in 2 minutes - Webiny
Create custom ESLint rules in 2 minutes · Inside your project folder, create a folder. · Then we also create an index. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found