Skip to content

Post Styleguide: Update to Udacity Styleguide #25

Open
@EthanLin-TWer

Description

@EthanLin-TWer

https://github.com/udacity/frontend-nanodegree-styleguide-zh/blob/master/%E5%89%8D%E7%AB%AF%E5%B7%A5%E7%A8%8B%E5%B8%88%E7%BA%B3%E7%B1%B3%E5%AD%A6%E4%BD%8D%E6%A0%B7%E5%BC%8F%E6%8C%87%E5%8D%97%20-%20JavaScript.md

自己根据 ES6 Styleguide 进行了一些取舍:

  • UTF-8。不知道如何使用 ESLint 验证
  • 注释。我觉得注释蛮没有必要的,保留意见
  • 分号。我觉得始终不采用分号
  • 变量命令。完全遵循同意
  • 字符串使用单引号。完全同意
  • 尽量使用 const。 prefer-const
  • 始终不使用 var。no-var
  • http://eslint.org/docs/rules/quote-props.html

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