mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 09:03:09 +02:00
Update CONTRIBUTING.md
This commit is contained in:
parent
a6f5e23069
commit
6846067a5d
1 changed files with 14 additions and 0 deletions
|
@ -79,6 +79,20 @@ Good:
|
|||
if (foo) bar;
|
||||
```
|
||||
|
||||
### 特別な理由がない限り`===`を使う
|
||||
🥰
|
||||
|
||||
### null系を除いて、bool以外の値をifに渡さない
|
||||
Bad:
|
||||
``` ts
|
||||
if (foo.length)
|
||||
```
|
||||
|
||||
Good:
|
||||
``` ts
|
||||
if (foo.length > 0)
|
||||
```
|
||||
|
||||
### `export default`を使わない
|
||||
インテリセンスと相性が悪かったりするため
|
||||
|
||||
|
|
Loading…
Reference in a new issue