Names for variables, methods, and classes should be descriptive, semantically accurate, and consistent with established conventions. Follow these guidelines:

  1. Use names that clearly describe the purpose or content:
    // Bad
    const val: any = getValue();
       
    // Good
    const fileOrFiles: File | File[] = getUploadedFiles();
    
  2. Follow semantic naming conventions:
  3. Align with framework and library conventions:
  4. Avoid generic or ambiguous names:

Remember that good names serve as self-documentation and improve code maintainability.