PluginBench
Rule

es module nodejs guidelines cursorrules prompt fil

via PatrickJS/awesome-cursorrules

ES Module development with Node.js best practices and modern JavaScript patterns.

What is es module nodejs guidelines cursorrules prompt fil?

Guides ES Module syntax and modern Node.js development using latest features. Use this rule when building Node.js projects that prioritize modularity, performance, and clean code with concise, focused responses.

  • Enforces ES module syntax over CommonJS
  • Suggests refactorings and code improvements aligned with modern JavaScript
  • Prioritizes modularity, DRY principles, and security in code structure
  • Adjusts response verbosity based on V-level (V0 code golf through V3 verbose with extracted functions)
  • Requires purpose-focused comments only where operations aren't clear or uncommon libraries are used
  • Encourages latest ES and Node.js feature adoption

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

Senior full-stack TypeScript, React, Node.js guidance with clean architecture, testing, and WHY-oriented reasoning.

**/*
41k
via PatrickJS/awesome-cursorrules

Quantitative factor research skills for designing, evaluating, and mining alpha factors in equities markets.

**/*
41k
via PatrickJS/awesome-cursorrules

Android development with Jetpack Compose, clean architecture, and Material Design 3.

**/*
41k
via PatrickJS/awesome-cursorrules

Angular development with Novo Elements UI library using standalone components.

**/*
41k
via PatrickJS/awesome-cursorrules

Expert Angular 18 + TypeScript development with Jest, emphasizing clean code and performance.

**/*
41k
via PatrickJS/awesome-cursorrules

Manage Kubernetes clusters, add-ons, stacks, and credentials via the Ankra CLI platform.

**/*.sh +5
41k
via PatrickJS/awesome-cursorrules