Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping Front matter #542

Closed
woneob opened this issue Feb 20, 2016 · 3 comments
Closed

Skipping Front matter #542

woneob opened this issue Feb 20, 2016 · 3 comments

Comments

@woneob
Copy link

woneob commented Feb 20, 2016

Some static site generater such as Jekyll include the YAML front matter block at the top of the scss file for their own tracking purposes. Front matter is necessary to compile.

---
layout: null
someProp: value

---

html {
    background-color: #fff;
}

However, syntax error occurs in the sass-lint because the line of triple dashes ---.
Here is sass-lint's error log (I'm using SublimeLinter-contrib-sass-lint). And linter does not work anymore.

c:/some/path/style.scss
  1:1  error  Please check validity of the block starting from line #1  Fatal

✖ 1 problem (1 error, 0 warnings) 

Can anyone help how to solve this issue?
How about add an option for skipping front matter. see haml-lin#skipping-frontmattert


See also:

@DanPurdy
Copy link
Member

You'll need to raise the issue with our AST provider gonzales-pe Unfortunately we wouldn't have control over skipping this in a friendly way as the AST needs to parse the whole file first for us to know the content of it.

You can file an issue here

@rugk
Copy link

rugk commented Jun 29, 2016

I've done it: tonyganch/gonzales-pe#195

@DanPurdy DanPurdy reopened this Jun 30, 2016
@DanPurdy
Copy link
Member

Reopened to continue discussion around this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants