docs: ESLint rules analysis and implementation roadmap #337
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Analyzed codebase patterns and created actionable ESLint enhancement plan. Identified 9 notable patterns (custom error handling, minimal suppressions, strict assertions) and recommended 20 rules across 10 implementation PRs.
Documents
ESLINT_README.md
Navigation hub with 3 implementation paths (5min quick wins → 4 week comprehensive)
ESLINT_RECOMMENDATIONS.md
Deep analysis: current state (~700 errors), 9 patterns, 20 rules with rationale and priority rankings
ESLINT_PR_PROPOSALS.md
10 PR specifications with copy-paste configs, migration paths, testing strategies
ESLINT_QUICKSTART.md
Templates and commands for immediate implementation
ESLINT_DECISION_TREE.md
Visual guide for choosing implementation approach
Key Patterns
UsageErrorwith fix suggestionseslint-disableinstances across ~75 TS filesnode:protocol importsRecommendations Summary
Quick wins (5min): Security + type imports = 20-30% coverage, zero breaking changes
Packages: 6 optional plugins (eslint-plugin-{import,n,unicorn,eslint-comments,jsdoc})
Example: Type Import Consistency (PR #2)
Target: ~700 errors → <100, no breaking changes, 50%+ auto-fixable
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.