Introduction
eslint-plugin-lintlord is a collection of practical ESLint rules designed to enforce cleaner, more maintainable TypeScript code patterns. Each rule addresses a real-world problem that developers encounter daily.
Why Lintlord?
TypeScript gives you powerful type system features, but with great power comes great responsibility. It's easy to end up with:
- Inline object types scattered across interfaces, making them impossible to reuse
- Deeply nested type literals that hurt readability
- Inconsistent type extraction where some types are named and others aren't
Lintlord rules help you maintain consistency by catching these patterns automatically and providing intelligent fixes.
Philosophy
- Every rule solves a real problem — no theoretical rules that don't improve real codebases
- Autofix when possible — rules should fix problems, not just report them
- Configurable — every rule has options to match your team's preferences
- Well-tested — comprehensive test suites ensure reliability
- Well-documented — clear examples of what's allowed and what's not
Current Rules
| Rule | Description |
|---|---|
| no-inline-interface-object-types | Disallow inline { ... } object type literals and extract them to named interfaces |
| prefer-logger | Disallow console.log (or all console calls) in favor of a dedicated logger |
Getting Started
See the Getting Started guide for installation and configuration.