ff700ae813
Draw is a plugin that adds support for drawing and editing vectors and markers on Leaflet maps. This will be used to create selections on the document. Source code: https://github.com/Leaflet/Leaflet.draw Licence: MIT
39 lines
638 B
JavaScript
39 lines
638 B
JavaScript
{
|
|
// environment
|
|
"browser": true,
|
|
"node": true,
|
|
"globals": {
|
|
"L": true,
|
|
"define": true
|
|
},
|
|
"strict": false,
|
|
|
|
// code style
|
|
"bitwise": true,
|
|
"camelcase": true,
|
|
"curly": true,
|
|
"eqeqeq": true,
|
|
"forin": false,
|
|
"immed": true,
|
|
"latedef": true,
|
|
"newcap": true,
|
|
"noarg": true,
|
|
"noempty": true,
|
|
"nonew": true,
|
|
"undef": true,
|
|
"unused": true,
|
|
"quotmark": "single",
|
|
|
|
// whitespace
|
|
"indent": 4,
|
|
"trailing": true,
|
|
"white": true,
|
|
"smarttabs": true,
|
|
"maxlen": 150
|
|
|
|
// code simplicity - not enforced but nice to check from time to time
|
|
// "maxstatements": 20,
|
|
// "maxcomplexity": 5
|
|
// "maxparams": 4,
|
|
// "maxdepth": 4
|
|
}
|