Skip to content

明确项目对变量命名规范的要求,并加入eslint #46

Description

@MagicalAstrogy

感觉被之前自己写的混用驼峰(camelCase)/下划线(snake_case)的代码攻击到了...

建议规范:

对外数据结构(variables)

  • 根对象使用下划线命名
  • schema使用驼峰命名

对内数据结构

  • 函数名使用驼峰命名
  • 函数参数使用下划线命名
  • 全局作用域的变量使用帕斯卡命名
  • 枚举成员使用 UPPER_CASE
  • 局部变量使用驼峰命名

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions