[PLUGINS] ~maj globale
[lhc/web/www.git] / www / plugins / gis / javascript / .eslintrc
diff --git a/www/plugins/gis/javascript/.eslintrc b/www/plugins/gis/javascript/.eslintrc
new file mode 100644 (file)
index 0000000..4ebb882
--- /dev/null
@@ -0,0 +1,32 @@
+{
+  "rules": {
+    "camelcase": 0,
+    "quotes": [2, "single", "avoid-escape"],
+    "no-mixed-spaces-and-tabs": [2, "smart-tabs"],
+    "space-before-function-paren": 2,
+    "space-in-parens": 2,
+    "object-curly-spacing": [2, "never"],
+    "array-bracket-spacing": 2,
+    "computed-property-spacing": 2,
+    "space-before-blocks": 2,
+    "keyword-spacing": 2,
+    "no-lonely-if": 2,
+    "comma-style": 2,
+    "no-underscore-dangle": 0,
+    "no-constant-condition": 0,
+    "no-multi-spaces": 0,
+    "strict": 0,
+    "key-spacing": 0,
+    "no-shadow": 0,
+    "no-unused-vars": 2
+  },
+  "globals": {
+    "L": true,
+    "module": false,
+    "define": false,
+    "require": true
+  },
+  "env": {
+    "browser": true
+  }
+}