Leaflet/build/hintrc.js

38 lines
624 B
JavaScript
Raw Normal View History

exports.config = {
2013-04-11 18:29:19 +08:00
// environment
2011-12-08 23:55:52 +08:00
"browser": true,
2012-05-10 22:04:48 +08:00
"node": true,
"predef": [],
2011-12-08 23:55:52 +08:00
"strict": false,
// code style
2011-12-08 23:55:52 +08:00
"bitwise": true,
"camelcase": true,
2011-12-08 23:55:52 +08:00
"curly": true,
"eqeqeq": true,
"forin": false,
2011-12-08 23:55:52 +08:00
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
2011-12-08 23:55:52 +08:00
"noempty": true,
"nonew": true,
"undef": true,
"unused": true,
"quotmark": "single",
// whitespace
"indent": 4,
"trailing": true,
"white": true,
"smarttabs": true,
2013-04-11 18:29:19 +08:00
"maxlen": 120
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
};