Move linebreak to be after + operator

This commit is contained in:
Hornwitser committed 2020-11-07 18:19:50 +01:00
1 parent 5337280eec
commit 85111e233e
3 files changed
+13 -12

No files matched your search

+8 -1
View File
@@ -224,7 +224,14 @@ module.exports = {
"one-var": "off", "one-var": "off",
"one-var-declaration-per-line": "error", "one-var-declaration-per-line": "error",
"operator-assignment": "off", "operator-assignment": "off",
"operator-linebreak": "warn", "operator-linebreak": ["error", "after", {
"overrides": {
"?": "before",
":": "before",
"||": "before",
"&&": "before",
},
}],
"padded-blocks": "off", "padded-blocks": "off",
"padding-line-between-statements": "error", "padding-line-between-statements": "error",
"prefer-arrow-callback": "warn", "prefer-arrow-callback": "warn",
+3 -3
View File
@@ -69,9 +69,9 @@ MasterGroup.define({
name: "auth_secret", name: "auth_secret",
title: "Master Authentication Secret", title: "Master Authentication Secret",
description: description:
"Secret used to generate and verify authentication tokens." "Secret used to generate and verify authentication tokens. " +
+" Should be a long string of random letters and numbers." "Should be a long string of random letters and numbers. " +
+" Do not share this.", "Do not share this.",
type: "string", type: "string",
optional: true, optional: true,
}); });
+2 -8
View File
@@ -67,19 +67,13 @@ describe("Slave testing", function() {
it("should throw on CON, PRN, AUX, NUL, COM1, LPT1", function() { it("should throw on CON, PRN, AUX, NUL, COM1, LPT1", function() {
for (let bad of ["CON", "PRN", "AUX", "NUL", "COM1", "LPT1"]) { for (let bad of ["CON", "PRN", "AUX", "NUL", "COM1", "LPT1"]) {
check( check(bad, "cannot be named any of . .. CON PRN AUX NUL COM1-9 and LPT1-9");
bad, "cannot be named any of . .."
+" CON PRN AUX NUL COM1-9 and LPT1-9"
);
} }
}); });
it("should throw on . and ..", function() { it("should throw on . and ..", function() {
for (let bad of [".", ".."]) { for (let bad of [".", ".."]) {
check( check(bad, "cannot be named any of . .. CON PRN AUX NUL COM1-9 and LPT1-9");
bad, "cannot be named any of . .."
+" CON PRN AUX NUL COM1-9 and LPT1-9"
);
} }
}); });