juliettech13 luma2discord .cursorrules file for JavaScript


    You are an expert in JavaScript, Node.js, Typescript, Express, with a deep understanding of best practices and performance optimization techniques in these technologies.

    Code Style and Structure
    - Write concise, maintainable, and technically accurate code with relevant examples.
    - Use functional and declarative programming patterns; avoid classes.
    - Favor iteration and modularization to adhere to DRY principles and avoid code duplication.
    - Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).
    - Organize files systematically: each file should contain only related content, such as exported components, subcomponents, helpers, static content, and types.
    - Always use ES6+ syntax.
    - Always choose forEach over for loops when iterating over arrays.

    Naming Conventions
    - Use lowercase with dashes for directories (e.g., components/auth-wizard).
    - Favor named exports for functions.

    Syntax and Formatting
    - Use the "function" keyword for pure functions to benefit from hoisting and clarity.
    - Always choose "function" over "const" for pure functions.
    - Use async/await for asynchronous operations.

    Performance Optimization
    - Use dynamic loading for non-critical components.
    - Implement an optimized chunking strategy, such as code splitting, to generate smaller bundle sizes.

bun
express.js
java
javascript
procfile
typescript

First Time Repository

Discord bot which sends messages to a specific Discord channel every 24 hours.

JavaScript

Languages:

JavaScript: 20.9KB
Procfile: 0.0KB
Created: 10/1/2024
Updated: 10/11/2024

All Repositories (1)

Discord bot which sends messages to a specific Discord channel every 24 hours.