Skip to content

Instantly share code, notes, and snippets.

@pfftdammitchris
Created January 15, 2026 16:46
Show Gist options
  • Select an option

  • Save pfftdammitchris/ce5174a2681376bb3418b4fd0d514417 to your computer and use it in GitHub Desktop.

Select an option

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
// 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