2015-04-28 12:12:31 +08:00
|
|
|
{
|
|
|
|
"rules": {
|
|
|
|
"camelcase": [1, {"properties": "always"}],
|
2015-07-17 21:04:26 +08:00
|
|
|
"comma-spacing": [2, {"before": false, "after": true}],
|
2015-07-17 23:44:26 +08:00
|
|
|
"dot-notation": [2, {"allowKeywords": true}],
|
2015-07-17 20:36:36 +08:00
|
|
|
"curly": [2, "all"],
|
2015-04-28 12:12:31 +08:00
|
|
|
"indent": [
|
|
|
|
2,
|
|
|
|
4
|
|
|
|
],
|
2015-07-17 23:35:02 +08:00
|
|
|
"key-spacing": [2, {
|
2015-04-28 12:12:31 +08:00
|
|
|
"beforeColon": false,
|
|
|
|
"afterColon": true
|
|
|
|
}],
|
|
|
|
"new-cap": [1, {"newIsCap": true, "capIsNew": true}],
|
|
|
|
"no-alert": [0],
|
|
|
|
"no-eval": [1],
|
|
|
|
"no-extend-native": [2, {"exceptions": ["Date", "String"]}],
|
2015-07-18 00:02:17 +08:00
|
|
|
"no-multi-spaces": [2],
|
2015-07-18 00:20:33 +08:00
|
|
|
"no-octal-escape": [2],
|
2015-04-28 12:12:31 +08:00
|
|
|
"no-underscore-dangle": [1],
|
|
|
|
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
|
|
|
|
"no-script-url": [1],
|
2015-07-21 04:29:10 +08:00
|
|
|
"no-shadow": [2, {"hoist": "functions"}],
|
2015-04-28 12:12:31 +08:00
|
|
|
"quotes": [
|
|
|
|
1,
|
|
|
|
"single"
|
|
|
|
],
|
|
|
|
"linebreak-style": [
|
|
|
|
2,
|
|
|
|
"unix"
|
|
|
|
],
|
|
|
|
"semi": [
|
|
|
|
2,
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"space-before-blocks": [2, "always"],
|
2015-07-17 20:47:28 +08:00
|
|
|
"space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
|
2015-07-18 00:00:39 +08:00
|
|
|
"space-infix-ops": [2, {"int32Hint": false}],
|
2015-04-28 12:12:31 +08:00
|
|
|
"strict": [1, "function"]
|
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"django": false
|
|
|
|
}
|
2015-07-17 20:36:36 +08:00
|
|
|
}
|