summaryrefslogtreecommitdiff
path: root/plugins/leaflet/scripts/leaflet-providers/.jshintrc
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/leaflet/scripts/leaflet-providers/.jshintrc')
-rw-r--r--plugins/leaflet/scripts/leaflet-providers/.jshintrc40
1 files changed, 40 insertions, 0 deletions
diff --git a/plugins/leaflet/scripts/leaflet-providers/.jshintrc b/plugins/leaflet/scripts/leaflet-providers/.jshintrc
new file mode 100644
index 0000000..c2c404e
--- /dev/null
+++ b/plugins/leaflet/scripts/leaflet-providers/.jshintrc
@@ -0,0 +1,40 @@
+{
+
+ // environment
+ "browser": true,
+ "node": false,
+ "strict": true,
+
+ "globals": {
+ "L": true
+ },
+
+ // 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": 120
+
+ // code simplicity - not enforced but nice to check from time to time
+ // "maxstatements": 20,
+ // "maxcomplexity": 5
+ // "maxparams": 4,
+ // "maxdepth": 4
+}