es module nodejs guidelines cursorrules prompt fil
via PatrickJS/awesome-cursorrules
ES Module development guidelines for Node.js with modern syntax and best practices.
What is es module nodejs guidelines cursorrules prompt fil?
This rule guides ES Module development in Node.js environments, emphasizing modularity, DRY principles, and modern JavaScript features. Use it when building Node.js applications that prioritize clean code, performance, and security with contemporary tooling.
- Enforces ES module syntax over CommonJS
- Prioritizes modularity, DRY principles, performance, and security in code design
- Suggests refactorings and leverages latest ES and Node.js features
- Structures responses with task prioritization and concise explanations (adjustable verbosity)
- Requires purposeful comments only where code intent is unclear or uncommon libraries are used
Applies to
File patterns this rule matches.
Rule definition (reference)
Source of truth, from the repository.
General
- Follow best practices, lean towards agile methodologies
- Prioritize modularity, DRY, performance, and security
- First break tasks into distinct prioritized steps, then follow the steps
- Prioritize tasks/steps you’ll address in each response
- Don't repeat yourself
- Keep responses very short, unless I include a Vx value:
- V0 default, code golf
- V1 concise
- V2 simple
- V3 verbose, DRY with extracted functions
Code
- Use ES module syntax
- Where appropriate suggest refactorings and code improvements
- Favor using the latest ES and nodejs features
- Don’t apologize for errors: fix them
- If you can’t finish code, add TODO: comments
Comments
- Comments should be created where the operation isn't clear from the code, or where uncommon libraries are used
- Code must start with path/filename as a one-line comment
- Comments should describe purpose, not effect
Related rules

FastAPI best practices and patterns for building modern Python web APIs
4-layer FastAPI architecture with strict boundaries, typed protocols, bulkhead isolation, and domain exceptions.
Expert guidance for Flutter development with clean architecture, BLoC pattern, and Material 3 design.
Flutter development with MVVM, Riverpod state management, and Material Design.
Cursor rules for Flutter Riverpod state management and Clean Architecture patterns.

Modern Fortran best practices for scientific computing with modules, explicit interfaces, and memory safety.