]> git.proxmox.com Git - mirror_novnc.git/blobdiff - .eslintrc
noVNC 1.2.0
[mirror_novnc.git] / .eslintrc
index 951b4fc517a350a3f0828b88ca75da4f250bec46..a53bb402b0aac4b583959af74951fe83c0e93648 100644 (file)
--- a/.eslintrc
+++ b/.eslintrc
@@ -25,6 +25,7 @@
 
         "brace-style": ["error", "1tbs", { "allowSingleLine": true }],
         "indent": ["error", 4, { "SwitchCase": 1,
+                                 "FunctionDeclaration": { "parameters": "first" },
                                  "CallExpression": { "arguments": "first" },
                                  "ArrayExpression": "first",
                                  "ObjectExpression": "first",
         "no-trailing-spaces": ["error"],
         "semi": ["error"],
         "space-before-blocks": ["error"],
+        "space-before-function-paren": ["error", { "anonymous": "always",
+                                                   "named": "never",
+                                                   "asyncArrow": "always" }],
+        "switch-colon-spacing": ["error"],
+        "camelcase": ["error", { allow: ["^XK_", "^XF86XK_"] }],
     }
 }