Production‑ready ESLint plugin that suggests corrections for typos in TypeScript/JavaScript code. Built with Functional Core / Imperative Shell and Effect‑TS.
- Smart suggestions for typos (similarity scoring)
- TypeScript‑aware diagnostics with signatures
- Filesystem‑based module path suggestions
- Fully typed, Effect‑TS based architecture
// eslint.config.js
import suggestMembers from "@prover-coder-ai/eslint-plugin-suggest-members"
export default [
{
...suggestMembers.configs.recommended,
files: ["**/*.{ts,tsx,js,jsx}"]
}
]// ❌ Typo in React hook import
export { useStae, useEffect } from "react"
// ✅ ESLint Error: Export 'useStae' does not exist on type 'typeof import("react")'. Did you mean:
// - useState
// - useRef
// - useMemo
// - useCallback// ❌ Typo in localStorage method
localStorage.get1Item("token")
// ✅ ESLint Error: Property 'get1Item' does not exist on type 'Storage'. Did you mean:
// - getItem(key: string): string | null
// - setItem(key: string, value: string)
// - removeItem(key: string)
// - clear(): void// ❌ Typo in file path
import styles from "./HamsterKo1mbatPage.css"
// ✅ ESLint Error: Cannot find module "./HamsterKo1mbatPage.css". Did you mean:
// - ./HamsterKombatPage.css
// - ./HamsterKombatPage.tsx
// - ./HamsterKombatPage
// - ../ThemeParamsPage.css// ❌ Typo in named import
import { saveRe1f } from "./hooks"
// ✅ ESLint Error: Export 'saveRe1f' does not exist on type 'typeof import("./hooks")'. Did you mean:
// - saveRef
// - saveState
// - useRef
// - useState// ❌ Typo in local identifier
const formatGree1ting = () => "ok"
formatGreeting()
// ✅ ESLint Error: Cannot find name 'formatGreeting'. Did you mean:
// - formatGree1ting(): string| Name | Description | TS Required |
|---|---|---|
| suggest-exports | Suggests corrections for missing exports | ✅ |
| suggest-imports | Suggests corrections for missing imports | ✅ |
| suggest-members | Suggests corrections for missing members | ✅ |
| suggest-missing-names | Suggests corrections for unresolved identifiers | ✅ |
| suggest-module-paths | Suggests corrections for missing module paths | ❌ |
pnpm --filter @prover-coder-ai/eslint-plugin-suggest-members test