2015-04-28 12:12:31 +08:00
|
|
|
{
|
|
|
|
"rules": {
|
|
|
|
"camelcase": [1, {"properties": "always"}],
|
|
|
|
"comma-spacing": [1, {"before": false, "after": true}],
|
|
|
|
"dot-notation": [1, {"allowKeywords": true}],
|
2015-07-17 20:36:36 +08:00
|
|
|
"curly": [2, "all"],
|
2015-04-28 12:12:31 +08:00
|
|
|
"indent": [
|
|
|
|
2,
|
|
|
|
4
|
|
|
|
],
|
|
|
|
"key-spacing": [1, {
|
|
|
|
"beforeColon": false,
|
|
|
|
"afterColon": true
|
|
|
|
}],
|
|
|
|
"new-cap": [1, {"newIsCap": true, "capIsNew": true}],
|
|
|
|
"no-alert": [0],
|
|
|
|
"no-eval": [1],
|
|
|
|
"no-extend-native": [2, {"exceptions": ["Date", "String"]}],
|
|
|
|
"no-multi-spaces": [1],
|
|
|
|
"no-octal-escape": [1],
|
|
|
|
"no-underscore-dangle": [1],
|
|
|
|
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
|
|
|
|
"no-script-url": [1],
|
|
|
|
"no-shadow": [1, {"hoist": "functions"}],
|
|
|
|
"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-04-28 12:12:31 +08:00
|
|
|
"space-infix-ops": [
|
|
|
|
1,
|
|
|
|
{"int32Hint": false}
|
|
|
|
],
|
|
|
|
"strict": [1, "function"]
|
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"django": false
|
|
|
|
}
|
2015-07-17 20:36:36 +08:00
|
|
|
}
|