Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Comments causing errors in sass-lint #76

Description

@mejiaj

I'm trying to use Stylemark and sass lint together, but I'm getting a sass-lint error because of the comment format.

My setup:

  • Node v11.14.0
  • NPM @6.7.0
  • gulp v4.0.0
  • gulp-sass-lint v1.4.0

My sample SCSS comment:

/*
---
name: Forms
category: Global
---

Global form styles.

``forms.html
<form>
  <fieldset>
    <label for="">Search</label>
    <input type="search" />
  </fieldset>
  <textarea />
  <label for="">Select</label>
  <select name="" id="">
    <option value="option-1">option-1</option>
    <option value="option-2">option-2</option>
    <option value="option-3">option-3</option>
    <option value="option-4">option-4</option>
  </select>
  <input type="submit" />
</form>
``
*/

(Removed 3rd backtick to preserve formatting)

The error being generated:
image

Would it be possible to add support for other comment types? Like SCSS commenting with // or something like:

/**
 * My code
 */

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions