What it does
A Cursor rules file that asks the AI to write simple, readable and maintainable JavaScript and TypeScript. It includes guidelines such as early returns, descriptive names, handler functions prefixed with handle, DRY code, a functional and immutable style, and keeping code changes minimal.
Use cases
- 01Refactor nested conditions into early returns
- 02Generate components with clear, descriptive names
- 03Keep AI edits small and focused on the request