Created
January 15, 2026 16:46
-
-
Save pfftdammitchris/ce5174a2681376bb3418b4fd0d514417 to your computer and use it in GitHub Desktop.
15 Miraculous AI Agent Strategies for Code Generation in 2026 - snippet-1.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // eslint.config.js (flat config) | |
| export default [ | |
| { | |
| rules: { | |
| 'no-restricted-syntax': [ | |
| 'error', | |
| { | |
| selector: 'CallExpression[callee.property.name="forEach"]', | |
| message: 'Prefer lodash/forEach or for...of for complex iterations', | |
| }, | |
| { | |
| selector: 'NewExpression[callee.name="Date"]', | |
| message: | |
| 'Use date-fns for date manipulation. Import: import { format } from "date-fns"', | |
| }, | |
| ], | |
| }, | |
| }, | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment