Skip to content

Commit

Permalink
add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
zilongshanren committed Jul 27, 2016
1 parent 2036a6e commit ca07275
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"extends": "eslint:recommended",
"rules": {
"comma-dangle": 0,
"no-console": 0,
"no-constant-condition": 0,
"semi": 1
},
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"plugins": [
],
"globals": {
"cc": false,
"CC_EDITOR": false,
"CC_DEV": false,
"CC_JSB": false,
"_ccsg": false
}
}
2 changes: 1 addition & 1 deletion cocos2d/core/components/CCWebView.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/**
* !#en WebView event type
* !#zh 网页视图加载事件类型
* !#zh 网页视图事件类型
* @enum WebView.EventType
*/
var EventType = _ccsg.WebView.EventType;
Expand Down

0 comments on commit ca07275

Please sign in to comment.