Leaflet/build/hintrc.js

41 lines
652 B
JavaScript
Raw Normal View History

{
// environment
2011-12-08 23:55:52 +08:00
"browser": true,
2012-05-10 22:04:48 +08:00
"node": true,
"globals": {
"L": true,
"define": true
},
2011-12-08 23:55:52 +08:00
"strict": false,
2013-12-14 06:24:43 +08:00
"es3": true,
2011-12-08 23:55:52 +08:00
// 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
}