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

Provide a way to specify --syntax flag for stylelint #7

Closed
efedorenko opened this issue Apr 21, 2016 · 3 comments · Fixed by #14
Closed

Provide a way to specify --syntax flag for stylelint #7

efedorenko opened this issue Apr 21, 2016 · 3 comments · Fixed by #14

Comments

@efedorenko
Copy link
Contributor

stylelint-staged detects syntax (i.e. SCSS) of committed files incorrectly — it throws errors that don't appear when stylelint is run normally. I'd guess that this is related to a new way that Stylelint requires syntax to be specified — it used to be defined in index.js, but now it is provided as param stylelint --syntax scss.

@derekrushforth
Copy link

Does this seem related to the issue I was having yesterday?

@efedorenko
Copy link
Contributor Author

Here is how syntax should be defined: https://github.com/stylelint/stylelint/blob/6b7fb87b67b964a8edf9c625aefbad9bfa2185c4/docs/user-guide/css-processors.md#parsing-non-standard-syntax

stylelint-staged does not specify --syntax when running stylelint in Shell script.

@derekrushforth yes, I think so.

@okonet
Copy link
Collaborator

okonet commented Apr 21, 2016

The thing is, this styling-staged doesn't detect syntax at all. I need to find a way to provide it somehow.

@okonet okonet changed the title Linting against incorrect syntax Provide a way to specify --syntax flag for stylelint Apr 21, 2016
@okonet okonet mentioned this issue Jun 6, 2016
Merged
@okonet okonet closed this as completed in #14 Jun 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants