Skip to content

Commit 83e6ff6

Browse files
committed
更新
1 parent 91ee7e5 commit 83e6ff6

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

docs/clean-code-javascript.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
99
其他 https://github.com/cmstead/js-refactor
1010

11+
1112
# [](#clean-code-javascript) JavaScript 代码整洁之道
1213

14+
1315
## [](#table-of-contents)目录
1416

1517
1. [概述](#introduction)
@@ -23,6 +25,7 @@
2325
1. [格式](#formatting)
2426
1. [注释](#comments)
2527

28+
2629
## [](#introduction)概述
2730

2831
[![一张幽默的图片:软件质量通过你在阅读代码的时候有多少报怨来进行评估](http://p0.qhimg.com/t01cb6a971284a41620.jpg)](http://p0.qhimg.com/t01cb6a971284a41620.jpg)
@@ -36,6 +39,7 @@ Robert C. Martin 在
3639

3740
还有一件事:知道这些不会马上让你成为更好的软件开发者,在工作中常年使用这些准则不能让你避免错误。每一段代码都从最初的草图开始到最终成型,就像为湿粘土塑形一样。最后,当我们与同行一起审查的时候,再把不完美的地方消除掉。不要因为初稿需要改善而否定自己,需要要否定的只是那些代码!
3841

42+
3943
## [](#variables)**变量**
4044

4145

@@ -998,6 +1002,8 @@ console.log('Employee name: ' + employee.getName()); // Employee name: John Doe
9981002

9991003
**[⬆ 回到顶部](#table-of-contents)**
10001004

1005+
1006+
10011007
## [](#classes)****
10021008

10031009

docs/config-eslint.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ plugins: [
6262

6363
## 编辑器配置
6464

65+
建议使用 Atom 或 VSCode 编辑器
66+
6567
### Atom
6668

6769
```
@@ -109,3 +111,17 @@ NOTE:不要修改配置 `"eslint.autoFixOnSave": false,`,否则开启修复
109111
110112
NOTE: 目前(20170216) VSCode 的提示不允许外链,所以 eslint 插件的提示,也无法做到[提示链接指向官方文档](https://github.com/Microsoft/vscode/issues/11847)
111113
```
114+
115+
### 其他
116+
117+
推荐使用 [zsh](http://ohmyz.sh/),配合插件[z](https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/z)实现跟踪/跳转你最常用的目录,配置 plugins=(z)即可。
118+
119+
如此,想要打开一个项目 protest,直接如下即可
120+
121+
```
122+
# z protest
123+
//使用 Atom 打开此项目
124+
# atom .
125+
//使用 VSCode 打开此项目
126+
# code .
127+
```

0 commit comments

Comments
 (0)