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

Comments causing errors in sass-lint #76

Open
mejiaj opened this issue Apr 15, 2019 · 0 comments
Open

Comments causing errors in sass-lint #76

mejiaj opened this issue Apr 15, 2019 · 0 comments
Milestone

Comments

@mejiaj
Copy link

mejiaj commented Apr 15, 2019

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
 */
@mpetrovich mpetrovich added this to the v4.0 milestone Dec 30, 2019
@mpetrovich mpetrovich reopened this Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants