# tsslint | Johnson Chu | Knowledge Base | Instagit

🔋⚡️ The lightest TypeScript semantic linting solution in JS

GitHub Stars: 608

Repository: https://github.com/johnsoncodehk/tsslint

---

## Articles

### [How TSSLint’s Related Information Feature Captures Stack Traces for One‑Click Rule Source Navigation](/johnsoncodehk/tsslint/how-tsslint-related-information-captures-stack-traces-one-click-rule-source-navigation)

Discover how TSSLint captures stack traces with DiagnosticRelatedInformation for one-click rule source navigation in your code editor. Improve your debugging workflow.

- Tags: internals
- Published: 2026-03-04

### [How to Access SourceFile and Program Objects in TSSLint RuleContext for AST Traversal](/johnsoncodehk/tsslint/how-to-access-sourcefile-program-objects-rulecontext-ast-traversal-tsslint)

Access TSSLint SourceFile and Program objects in RuleContext for deep AST traversal and type-aware analysis. Discover how TSSLint empowers advanced linting.

- Tags: how-to-guide
- Published: 2026-03-04

### [How to Handle False Positives in Type-Aware TSSLint Rules Using Cache Invalidation](/johnsoncodehk/tsslint/how-to-handle-false-positives-type-aware-tsslint-rules-cache-invalidation)

Learn to effectively handle false positives in type-aware TSSLint rules. Discover how cache invalidation resolves persistent diagnostics after auto-fixes. Read now.

- Tags: how-to-guide
- Published: 2026-03-04

### [getNonBoundSourceFile vs Full TypeChecker Mode in TSSLint: Rule Execution and Performance](/johnsoncodehk/tsslint/difference-getnonboundsourcefile-full-typechecker-mode-tsslint-rule-context)

Understand TSSLint's getNonBoundSourceFile vs full TypeChecker mode for rule execution and performance. Learn how TSSLint optimizes rule checks for faster development.

- Tags: deep-dive
- Published: 2026-03-04

### [How to Configure Monorepo Linting in TSSLint with Multiple tsconfig.json Files](/johnsoncodehk/tsslint/how-monorepo-linting-configured-tsslint-multiple-tsconfig-json-project-paths)

Configure monorepo linting with TSSLint and multiple tsconfigjson files. Learn how TSSLint uses glob patterns and parallel workers for efficient code inspection across your projects.

- Tags: how-to-guide
- Published: 2026-03-04

### [How to Use Brace Expansion Patterns in the TSSLint CLI to Lint Multiple Projects at Once](/johnsoncodehk/tsslint/how-to-use-brace-expansion-tsslint-cli-linting-multiple-projects)

Lint multiple TypeScript projects simultaneously using TSSLint CLI brace expansion patterns with the --project flag. Optimize your workflow today.

- Tags: how-to-guide
- Published: 2026-03-04

### [Troubleshooting TSSLint Rules Not Firing: Fixing Include, Exclude, and Context Issues](/johnsoncodehk/tsslint/troubleshooting-tsslint-rules-not-firing-include-exclude-context)

Fix TSSLint rules not firing by troubleshooting include exclude and context issues. Optimize your TSSLint configuration for seamless linting.

- Tags: how-to-guide
- Published: 2026-03-04

### [How to Use createDiagnosticsPlugin in tsslint to Filter and Modify TypeScript Diagnostics](/johnsoncodehk/tsslint/purpose-usage-creatediagnosticsplugin-filtering-modifying-diagnostics)

Learn how to use createDiagnosticsPlugin in tsslint to filter and modify TypeScript diagnostics. Unified error handling for better code quality.

- Tags: how-to-guide
- Published: 2026-03-04

### [How to Create Category Plugins in TSSLint to Group and Organize Rules](/johnsoncodehk/tsslint/how-to-create-category-plugins-group-organize-rules-tsslint)

Learn to create TSSLint category plugins to group and organize related rules. Dynamically remap rule severities across your linting pipeline with createCategoryPlugin.

- Tags: how-to-guide
- Published: 2026-03-04

### [Performance Optimization Strategies for Writing High-Speed, Syntax-Only Rules in TSSLint](/johnsoncodehk/tsslint/performance-optimization-strategies-writing-syntax-only-rules-tsslint)

Boost TSSLint performance by using syntax-only rules that access the TypeScript AST. Learn strategies to speed up linting by avoiding type-checker APIs.

- Tags: performance
- Published: 2026-03-04

### [How TSSLint Handles Virtual TypeScript Files for Vue, MDX, and Astro](/johnsoncodehk/tsslint/how-tsslint-handles-virtual-typescript-files-vue-mdx-astro)

Discover how TSSLint processes virtual TypeScript files for Vue, MDX, and Astro by leveraging language plugins and mapping diagnostics back to original sources.

- Tags: internals
- Published: 2026-03-04

### [How to Configure File-Level Include/Exclude Patterns with Minimatch in tsslint.config.ts](/johnsoncodehk/tsslint/how-to-configure-file-level-include-exclude-patterns-minimatch-tslint-config-ts)

Master tsslint file-level include and exclude patterns using Minimatch in your tsslint.config.ts. Control which rules apply to specific files for streamlined linting.

- Tags: how-to-guide
- Published: 2026-03-04

### [How to Integrate TSL Rules into TSSLint Using fromTSLRules for Functional Linting](/johnsoncodehk/tsslint/how-to-integrate-tsl-rules-into-tsslint-fromtslrules)

Integrate TSL rules into TSSLint with fromTSLRules. This helper dynamically loads TSL rules, making them TSSLint-compatible for enhanced functional linting.

- Tags: how-to-guide
- Published: 2026-03-04

### [How to Load ESLint Rules in TSSLint: Using importESLintRules with Plugin Prefix Resolution](/johnsoncodehk/tsslint/how-to-load-eslint-rules-in-tsslint-importeslintrules-plugin-prefix-resolution)

Easily load ESLint rules in TSSLint using importESLintRules. Automatically resolve plugin prefixes like react/ with this powerful tool. Optimize your TSSLint configuration today.

- Tags: how-to-guide
- Published: 2026-03-04

### [How to Migrate TSLint Rules to TSSLint Using `importTSSLintRules`](/johnsoncodehk/tsslint/process-for-migrating-existing-tslint-rules-to-tsslint-importtslintrules)

Easily migrate TSLint rules to TSSLint with importTSLintRules. Reuse your existing rule set without rewriting code. Learn the simple process in this guide from johnsoncodehk/tsslint.

- Tags: migration-guide
- Published: 2026-03-04

### [How to Use withoutCache() to Opt Specific Diagnostics Out of Caching in TSSLint](/johnsoncodehk/tsslint/when-how-to-use-withoutcache-opt-diagnostics-out-of-caching)

Learn when and how to use withoutCache in TSLint to opt specific diagnostics out of caching. Prevent re-evaluation on every lint run.

- Tags: how-to-guide
- Published: 2026-03-04

### [How to Configure Diagnostic Severity Levels in TSSLint Using asWarning(), asError(), and asSuggestion()](/johnsoncodehk/tsslint/how-diagnostic-severity-levels-configured-tsslint-aswarning-aserror-assuggestion)

Configure TSSLint diagnostic severity levels using asWarning asError and asSuggestion. Learn how to control TypeScript issue display with ctx.report and tsDiagnosticCategory.

- Tags: how-to-guide
- Published: 2026-03-04

### [How to Implement Code Fixes with .withFix() and Refactorings with .withRefactor() in TSSLint Rules](/johnsoncodehk/tsslint/how-to-implement-code-fixes-with-withfix-refactorings-with-withrefactor)

Learn to implement code fixes with TSSLint .withFix() and refactorings with .withRefactor(). Modify source code efficiently using FileTextChanges directly in your TSSLint rules.

- Tags: how-to-guide
- Published: 2026-03-04

### [How to Build Custom TSSLint Plugins Using resolveRules, resolveDiagnostics, and resolveCodeFixes Hooks](/johnsoncodehk/tsslint/how-to-build-custom-tsslint-plugins-resolverules-resolvediagnostics-resolvecodefixes)

Learn to build custom TSSLint plugins. Explore resolveRules, resolveDiagnostics, and resolveCodeFixes hooks to modify rules, diagnostics, and code fixes for deep linting pipeline customization.

- Tags: how-to-guide
- Published: 2026-03-04

### [TSSLint `.at()` Method: Advanced Rule Debugging and Stack Trace Customization](/johnsoncodehk/tsslint/how-at-method-enables-advanced-rule-debugging-stack-trace-customization)

Discover how TSSLint's.at() method enhances rule debugging and stack trace customization by attaching detailed debug info to diagnostics for precise error tracing.

- Tags: deep-dive
- Published: 2026-03-04

### [How to Create a Type-Aware Rule in TSSLint: Accessing the TypeScript Program and TypeChecker](/johnsoncodehk/tsslint/how-to-create-type-aware-rule-accessing-typescript-program-type-checker)

Learn to create a type-aware TSSLint rule by accessing ctx.program for TypeScript Program and TypeChecker. Automatically run files with full type access for powerful linting.

- Tags: how-to-guide
- Published: 2026-03-04

### [How TSSLint Rule Caching Differentiates Between Syntax-Aware and Type-Aware Rules](/johnsoncodehk/tsslint/how-tsslint-rule-caching-differentiates-syntax-aware-type-aware-rules)

Discover how TSSLint differentiates syntax vs type-aware rules with smart caching. Learn about its efficient two-pass linting process to improve performance.

- Tags: internals
- Published: 2026-03-04

