Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit ca150435
authored
Jan 15, 2013
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more hints
1 parent
dc1a5c9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
README.md
README.md
View file @
ca15043
...
@@ -158,6 +158,8 @@ project. Here are my rules of thumb:
...
@@ -158,6 +158,8 @@ project. Here are my rules of thumb:
-
Spacing. Indentation = 2 spaces. Also I add a lot of spaces where possible. See below.
-
Spacing. Indentation = 2 spaces. Also I add a lot of spaces where possible. See below.
-
Anonymous functions over names functions. Usually I declare a function and assign it to a variable:
`var foo = function() {}`
-
Anonymous functions over names functions. Usually I declare a function and assign it to a variable:
`var foo = function() {}`
-
Variable declarations. If multiple variables are defined, I use a leading comma for separation.
-
Variable declarations. If multiple variables are defined, I use a leading comma for separation.
-
Camelcased variable names. No underscores.
-
Make sure that key is in objects when iterating over it. See below.
#### 6.1. Spaces ####
#### 6.1. Spaces ####
...
@@ -187,7 +189,17 @@ var num = 1
...
@@ -187,7 +189,17 @@ var num = 1
,
date
=
new
Date
()
,
date
=
new
Date
()
```
```
#### 6.3. JSHint options ####
#### 6.3. For-In-loops ####
```
js
for
(
var
key
in
obj
)
{
if
(
obj
.
hasOwnProperty
(
key
))
{
console
.
log
(
obj
[
key
])
}
}
```
#### 6.4. JSHint options ####
```
js
```
js
{
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment