Skip to content

1-js/03-code-quality/02-coding-style#36

Merged
leviding merged 3 commits intozh-hansfrom
transfer/coding-style
Apr 22, 2018
Merged

1-js/03-code-quality/02-coding-style#36
leviding merged 3 commits intozh-hansfrom
transfer/coding-style

Conversation

@linhe0x0
Copy link
Copy Markdown

resolve #18

resolve #18
@linhe0x0 linhe0x0 changed the title 1-js/03-code-quality/02-coding-style [WIP] 1-js/03-code-quality/02-coding-style Apr 11, 2018
@leviding leviding added the WIP Work in process label Apr 12, 2018
@linhe0x0 linhe0x0 changed the title [WIP] 1-js/03-code-quality/02-coding-style 1-js/03-code-quality/02-coding-style Apr 12, 2018
@linhe0x0 linhe0x0 removed the WIP Work in process label Apr 12, 2018
@linhe0x0 linhe0x0 self-assigned this Apr 12, 2018
@wzy816
Copy link
Copy Markdown

wzy816 commented Apr 21, 2018

@leviding 校对认领

Copy link
Copy Markdown

@wzy816 wzy816 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

almost perfect

你也可以从网上下载一些风格规则然后扩展它们。查看 <http://eslint.org/docs/user-guide/getting-started> 以获得有关安装的更多详细信息。

Using a linter has a great side-effect: linters catch typos. For instance, when an undefined variable is accessed, a linter detects it and (if integrated with an editor) highlights it. In most cases that's a mistype. So we can fix it right ahead.
使用一个 linter 会有一些很棒的边际效用。Linters 可以捕捉错别字。例如,当一个 undefined 变量被访问时,linter 会检测出并把它高亮(如果和编辑器集成了)。在大多数情况下,这都是你打错啦。所以我们可以在一开始就解决它。
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

边际效用 => 副作用

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一开始就解决它 => 马上解决它

@wzy816
Copy link
Copy Markdown

wzy816 commented Apr 21, 2018

@leviding @sqrthree 校对完了

Signed-off-by: sqrtthree <imsqrtthree@gmail.com>
@linhe0x0
Copy link
Copy Markdown
Author

已调整。

@leviding leviding merged commit 85c524f into zh-hans Apr 22, 2018
@leviding
Copy link
Copy Markdown
Member

@linhe0x0 linhe0x0 deleted the transfer/coding-style branch April 22, 2018 10:02
@linhe0x0
Copy link
Copy Markdown
Author

@leviding 翻译好了,在 #52

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants