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 dc1a5c9a
authored
Jan 15, 2013
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
leading comma
1 parent
6c768506
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
README.md
README.md
View file @
dc1a5c9
...
@@ -157,6 +157,7 @@ project. Here are my rules of thumb:
...
@@ -157,6 +157,7 @@ project. Here are my rules of thumb:
-
Curly braces for single line if blocks. I always add curly braces to if blocks. Same for loops and other places.
-
Curly braces for single line if blocks. I always add curly braces to if blocks. Same for loops and other places.
-
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.
#### 6.1. Spaces ####
#### 6.1. Spaces ####
...
@@ -178,7 +179,15 @@ if (condition) {
...
@@ -178,7 +179,15 @@ if (condition) {
}
}
```
```
#### 6.2. JSHint options ####
#### 6.2. Variable declarations ####
```
js
var
num
=
1
,
user
=
new
User
()
,
date
=
new
Date
()
```
#### 6.3. 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