Skip to content

Commit

Permalink
Merge pull request #1 from zhangbihua/master
Browse files Browse the repository at this point in the history
add eslint rule
  • Loading branch information
songguangyu committed Feb 17, 2017
2 parents 0c80368 + ffb6e45 commit 4e29bae
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"parser": "babel-eslint",
"env": {
"node": true,
"mocha": true
"mocha": true,
"es6": true // es6 envoriment
},
"rules": {
"strict": [0],
Expand All @@ -20,8 +21,13 @@
"no-process-exit": 0,
"no-empty": 0,
"yoda": 0,
"no-cond-assign": 0,
"no-const-assign": "warn", // more rule
"no-new-func": 0,
"no-labels": 0
"no-labels": 0,
"no-this-before-super": "warn", // more rule
"no-undef": "warn", // more rule
"no-unreachable": "warn", // more rule
"no-unused-vars": "warn", // more rule
"valid-typeof": "warn" // more rule
}
}

0 comments on commit 4e29bae

Please sign in to comment.