lintmyai
v1.0.6
Published
AI code safety scanner for JavaScript/TypeScript
Maintainers
Readme
lintmyai
Make AI-generated code production-ready.
AI writes code fast, but it makes mistakes you won't catch in review. LintMyAI finds them automatically before they reach production.
Quick Start
npx lintmyaiScans your project for AI-generated code issues and reports findings instantly. No config needed.
Scan specific files or folders:
npx lintmyai src/
npx lintmyai src/api.ts src/utils.tsInstallation
npm install -D lintmyaiThen add to your scripts:
{
"scripts": {
"lint:ai": "lintmyai"
}
}What It Catches
- Hallucinated imports -- packages and APIs that don't exist
- Security anti-patterns -- hardcoded secrets, exposed credentials, unsafe operations
- Dead code and empty stubs -- functions that do nothing, unreachable branches
- AI behavior patterns -- hedging comments, prompt artifacts, TODO placeholders
- Boilerplate and complexity -- duplicated logic, overly complex functions
- Framework-specific issues -- React, Vue, Express, and Next.js anti-patterns
34 rules across 8 categories. Purpose-built for AI-generated code.
License Activation
After purchasing a license at lintmyai.com/pricing, activate it to unlock all rules.
Local development -- Run the activate command once per machine:
npx lintmyai activate <your-license-key>Your license is stored at ~/.config/lintmyai/license.json. No .env file needed.
CI/CD -- Set the LINTMYAI_LICENSE_KEY environment variable instead of running activate:
# GitHub Actions example
env:
LINTMYAI_LICENSE_KEY: ${{ secrets.LINTMYAI_LICENSE_KEY }}The env var is checked automatically -- no activate command needed in CI.
Performance -- License checks are disk-only during scans. No network calls, zero latency impact. The activate command is the only step that contacts the license server.
Output Formats
lintmyai # Text output (default)
lintmyai --format json # JSON for programmatic use
lintmyai --format sarif # SARIF for GitHub Code ScanningESLint Integration
LintMyAI includes a built-in ESLint plugin. Add it to your ESLint config:
import lintmyai from 'lintmyai';
export default [
...lintmyai.configs.recommended,
];Documentation
Full rule documentation, configuration options, and guides at lintmyai.com.
License
MIT
