requireSpaceAfterLineComment

Requires that a line comment (//) be followed by a space.

Types: Boolean, Object or String

Values:

  • true
  • "allowSlash" (deprecated use "allExcept": ["/"]) allows /// format
  • Object:
    • allExcept: array of allowed strings before space //(here)

Example

"requireSpaceAfterLineComment": { "allExcept": ["#", "="] }
Valid
// A comment
/*A comment*/
//# sourceURL=filename.js
//= require something
Invalid
//A comment
Rule source
Test source