Prompt
Ensure all identifiers, file references, and generated names follow established conventions and patterns rather than using arbitrary or hardcoded values. This includes using correct file extensions in imports, following consistent naming patterns for generated targets, and using template variables instead of hardcoded names in templates.
Key practices:
- Follow established patterns for generated names (e.g.,
ciTargetName--merge-reportswith double dashes) - Use technically correct file extensions in import statements (
.mtsvs.mjs) - Use template variables instead of hardcoded identifiers in code generation
Example violations and fixes:
// ❌ Wrong: Single dash instead of established double-dash pattern
e2e-ci-merge-reports
// ✅ Correct: Follow the established pattern with double dashes
e2e-ci--merge-reports
// ❌ Wrong: Hardcoded name in template
import { rule, RULE_NAME } from './my-custom-rule';
// ✅ Correct: Use template variable
import { rule, RULE_NAME } from './<%= name %>';
This ensures consistency across the codebase and prevents confusion when names don’t follow expected patterns.