---
title: "Bending TSLint to your needs"
url: https://daily.dev/posts/bending-tslint-to-your-needs-ajhgpjvvh
source_url: https://timdeschryver.dev/blog/bending-tslint-to-your-needs
type: article
source: "Tim Deschryver"
author: "Tim Deschryver"
published: 2026-05-31T07:47:17.633Z
updated: 2026-06-01T04:00:30.569Z
tags: ["typescript", "rxjs"]
reading_time: 10
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Bending TSLint to your needs

**[Tim Deschryver](https://daily.dev/sources/timdeschryver)** · [@timdeschryver](https://daily.dev/timdeschryver) · 10 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of building a custom CLI tool called rxjs-operator-counter using TSLint's programmatic API and AST traversal. The author creates a custom TSLint rule and walker to iterate TypeScript files, detect RxJS operators used inside pipe() calls, count their occurrences, and print a summary. The post covers extending AbstractRule, using visitIdentifier, running TSLint as a library, writing fixture-based tests, and refactoring the AST traversal using TSQuery's CSS-like selector syntax.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://timdeschryver.dev/blog/bending-tslint-to-your-needs>

---

Tags: [#typescript](https://daily.dev/tags/typescript), [#rxjs](https://daily.dev/tags/rxjs)

[View this post on daily.dev](https://daily.dev/posts/bending-tslint-to-your-needs-ajhgpjvvh)
