]> git.proxmox.com Git - mirror_novnc.git/blobdiff - .eslintrc
Use fat arrow functions `const foo = () => { ... };` for callbacks
[mirror_novnc.git] / .eslintrc
index ea4d65504a00d9f77898c9c263d09ecf31bfc993..b85e51cd839917ad7c7e7773f64a9d074ff59cdf 100644 (file)
--- a/.eslintrc
+++ b/.eslintrc
         "no-var": "error",
         "no-useless-constructor": "error",
         "object-shorthand": ["error", "methods", { "avoidQuotes": true }],
+        "prefer-arrow-callback": "error",
+        "arrow-body-style": ["error", "as-needed", { "requireReturnForObjectLiteral": false } ],
+        "arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
+        "arrow-spacing": ["error"],
+        "no-confusing-arrow": ["error", { "allowParens": true }],
     }
 }