Back to all reviewers

Follow snake_case convention

sveltejs/svelte
Based on 2 comments
TypeScript

Consistently use snake_case naming throughout the codebase for variables, methods, and identifiers to maintain established conventions. When the codebase has adopted snake_case as the standard, all new code should follow this pattern rather than introducing camelCase or other naming styles.

Naming Conventions TypeScript

Reviewer Prompt

Consistently use snake_case naming throughout the codebase for variables, methods, and identifiers to maintain established conventions. When the codebase has adopted snake_case as the standard, all new code should follow this pattern rather than introducing camelCase or other naming styles.

Example:

// Preferred - follows codebase snake_case convention
const class_name = `__svelte_${hash(rule)}`;
function push_quasi(q: string) { ... }

// Avoid - inconsistent with established convention
const className = `__svelte_${hash(rule)}`;
function pushQuasi(q: string) { ... }

This ensures consistency across the codebase, improves readability, and prevents confusion when different naming conventions are mixed within the same project.

2
Comments Analyzed
TypeScript
Primary Language
Naming Conventions
Category

Source Discussions