From d355169b60a9d556a2c6ce5ffbeb35a8e3cf6984 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Wed, 9 Oct 2019 21:24:07 +0200 Subject: [PATCH] Tools: Added rules to linter --- .eslintignore | 1 + .eslintrc.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.eslintignore b/.eslintignore index 3fb685bb21..58fd3b1955 100644 --- a/.eslintignore +++ b/.eslintignore @@ -45,3 +45,4 @@ Server/docs/ Server/dist/ Server/bin/ Server/node_modules/ +ElectronClient/app/packageInfo.js \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js index b47e5a4a2d..8a1c34819f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -72,7 +72,11 @@ module.exports = { "anonymous": "never", "named": "never", "asyncArrow": "always" - }] + }], + "multiline-comment-style": ["error", "separate-lines"], + "space-before-blocks": "error", + "spaced-comment": ["error", "always"], + "keyword-spacing": ["error", { "before": true, "after": true }] }, "plugins": [ "react",