aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/.eslintrc
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/.eslintrc')
-rw-r--r--server/sonar-web/.eslintrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/sonar-web/.eslintrc b/server/sonar-web/.eslintrc
index 16ebf9a4f53..d03895d0134 100644
--- a/server/sonar-web/.eslintrc
+++ b/server/sonar-web/.eslintrc
@@ -88,6 +88,7 @@
"consistent-this": ["warn", "that"],
"func-name-matching": "error",
"func-style": ["warn", "declaration", { "allowArrowFunctions": true }],
+ "lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"max-depth": "warn",
"max-lines": ["warn", 1000],
"max-params": ["warn", 4],
@@ -101,6 +102,11 @@
"no-unneeded-ternary": "warn",
"one-var": ["warn", "never"],
"operator-assignment": "warn",
+ "padding-line-between-statements": [
+ "error",
+ { "blankLine": "always", "prev": "*", "next": ["class", "function"] },
+ { "blankLine": "always", "prev": ["class", "function"], "next": "*" }
+ ],
// es2015
"no-duplicate-imports": "error",