Skip to content

Commit d4aa4b6

Browse files
committed
Relaxed trailing spaces and comments rules.
1 parent 0b7fb7c commit d4aa4b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.eslintrc.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@
4646
"indent": [ "error", 4, { "SwitchCase": 1 } ],
4747
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true }],
4848
"linebreak-style": [ "off" ],
49-
"lines-around-comment": [ "error", { "beforeBlockComment": true, "allowBlockStart": true, "allowObjectStart": true, "allowArrayStart": true, "beforeLineComment": true, "allowBlockEnd": true }],
49+
"lines-around-comment": [ "error", { "beforeBlockComment": true, "afterBlockComment": false, "beforeLineComment": true, "afterLineComment": false, "allowBlockStart": true, "allowBlockEnd": false, "allowObjectStart": true, "allowArrayStart": true, "allowBlockEnd": true }],
5050
"new-parens": "error",
5151
"no-array-constructor": "error",
5252
"no-lonely-if": "error",
5353
"no-mixed-spaces-and-tabs": "error",
5454
"no-plusplus": "off",
55-
"no-trailing-spaces": [ "error", { "skipBlankLines": true } ],
55+
"no-trailing-spaces": [ "error", { "skipBlankLines": true, "ignoreComments": true } ],
5656
"no-underscore-dangle": "off",
5757
"no-whitespace-before-property": "error",
5858
"object-curly-newline": [ "error", { "multiline": true, "minProperties": 0 } ],
@@ -65,7 +65,8 @@
6565
"space-before-function-paren": "error",
6666
"space-in-parens": [ "error", "never" ],
6767
"space-infix-ops": [ "error", { "int32Hint": true } ],
68-
"wrap-regex": "error"
68+
"wrap-regex": "error",
69+
"spaced-comment": [ "error", "always", { "block": { "balanced": true }} ],
6970

7071
}
7172
}

0 commit comments

Comments
 (0)