Skip to content

Commit ea093e0

Browse files
committed
Merge pull request #449 from justjake/jake/spaced-comment-lenient
[eslint] allow +, -, =, ! in comments without a space
2 parents 26194e2 + ff4dc46 commit ea093e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/eslint-config-airbnb/.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@
166166
"space-before-function-paren": [2, "never"], // http://eslint.org/docs/rules/space-before-function-paren
167167
"space-infix-ops": 2, // http://eslint.org/docs/rules/space-infix-ops
168168
"space-return-throw-case": 2, // http://eslint.org/docs/rules/space-return-throw-case
169-
"spaced-comment": 2, // http://eslint.org/docs/rules/spaced-comment
169+
"spaced-comment": [2, "always", {// http://eslint.org/docs/rules/spaced-comment
170+
"exceptions": ["-", "+"],
171+
"markers": ["=", "!"] // space here to support sprockets directives
172+
}],
170173

171174
/**
172175
* JSX style

0 commit comments

Comments
 (0)