Sha256: 03308616028301eafd4a4adb98b7ce3d3de086af2d9970e247137841536e74ec

Contents?: true

Size: 1.14 KB

Versions: 24

Compression:

Stored size: 1.14 KB

Contents

# double-slash-comment-whitespace-inside

Require or disallow whitespace after the `//` in `//`-comments

```scss
a {
  width: 10px; // inline-comment
/*               ↑
 * Such whitespace */
```

This rule only works with SCSS-like [single-line comments](https://sass-lang.com/documentation/syntax/comments) and ignores CSS comments (`/* */`).

Any number of slases are allowed at the beginning of the comment. So `/// comment` is treated the same way as `// comment`.

Note that a newline is not possible as a whitespace in terms of this rule as `//`-comments are intended to be single-line.

## Options

`string`: `"always"|"never"`

### `"always"`

There *must always* be whitespace after the `//` inside `//`-comments.

The following patterns are considered warnings:

```scss
//comment
```

The following patterns are *not* considered warnings:

```scss
// comment
```

```scss
///   comment
```

### `"never"`

There *must never* be whitespace after the `//` inside `//`-comments.

The following patterns are considered warnings:

```scss
// comment
```

The following patterns are *not* considered warnings:

```scss
//comment
```

```scss
///comment
```

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-5.0.7 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-5.0.6 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-5.0.5 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-5.0.4 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-5.0.3 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-5.0.2 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-5.0.1 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-4.3.5 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-5.0.0 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-4.3.4 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-4.3.3 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-4.3.2 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-4.3.1 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-4.3 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-4.2.3 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-4.2.2 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-4.2.1 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-4.2 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md
trusty-cms-4.1.9 node_modules/stylelint-scss/src/rules/double-slash-comment-whitespace-inside/README.md