2011-12-13 01:54:03 +08:00
|
|
|
exports.config = {
|
2013-04-11 18:29:19 +08:00
|
|
|
|
2013-04-11 17:45:52 +08:00
|
|
|
// environment
|
2011-12-08 23:55:52 +08:00
|
|
|
"browser": true,
|
2012-05-10 22:04:48 +08:00
|
|
|
"node": true,
|
2013-03-07 23:39:55 +08:00
|
|
|
"predef": [],
|
2011-12-08 23:55:52 +08:00
|
|
|
"strict": false,
|
|
|
|
|
2013-04-11 17:45:52 +08:00
|
|
|
// code style
|
2011-12-08 23:55:52 +08:00
|
|
|
"bitwise": true,
|
2013-04-11 17:45:52 +08:00
|
|
|
"camelcase": true,
|
2011-12-08 23:55:52 +08:00
|
|
|
"curly": true,
|
2013-04-11 17:45:52 +08:00
|
|
|
"eqeqeq": true,
|
2013-04-20 16:32:15 +08:00
|
|
|
"forin": false,
|
2011-12-08 23:55:52 +08:00
|
|
|
"immed": true,
|
|
|
|
"latedef": true,
|
|
|
|
"newcap": true,
|
2013-04-11 17:45:52 +08:00
|
|
|
"noarg": true,
|
2011-12-08 23:55:52 +08:00
|
|
|
"noempty": true,
|
|
|
|
"nonew": true,
|
2013-04-11 17:45:52 +08:00
|
|
|
"undef": true,
|
|
|
|
"unused": true,
|
|
|
|
"quotmark": "single",
|
2011-12-09 22:35:15 +08:00
|
|
|
|
2013-04-11 17:45:52 +08:00
|
|
|
// whitespace
|
|
|
|
"indent": 4,
|
2011-12-09 22:35:15 +08:00
|
|
|
"trailing": true,
|
2012-02-15 17:03:39 +08:00
|
|
|
"white": true,
|
2013-04-11 17:45:52 +08:00
|
|
|
"smarttabs": true,
|
2013-04-11 18:29:19 +08:00
|
|
|
"maxlen": 120
|
2013-04-11 17:45:52 +08:00
|
|
|
|
2013-04-11 18:29:19 +08:00
|
|
|
// code simplicity - not enforced but nice to check from time to time
|
|
|
|
// "maxstatements": 20,
|
|
|
|
// "maxcomplexity": 5
|
|
|
|
// "maxparams": 4,
|
|
|
|
// "maxdepth": 4
|
2012-02-15 17:03:39 +08:00
|
|
|
};
|