glen-84 / vscode-sass-lint

Sass Lint for Visual Studio Code
16 stars 1 forks source link

config file location and rule resolution #35

Closed joneff closed 5 years ago

joneff commented 5 years ago

Can the extension support editor-config-style file location (https://editorconfig.org/#file-location) and rule resolution e.g. when linting files to look in the same dir; then in the parent one and so on and so forth, until it reaches the root of the project?

glen-84 commented 5 years ago

It should do that already – is it not working for you?

joneff commented 5 years ago

Here is a screenshot of a very simple setup:

image

Also, can there be a hint / tree structure where the rules come from?

glen-84 commented 5 years ago

The config file name should be .sass-lint.yml or .sasslintrc (note the leading period).

joneff commented 5 years ago

Worked like a charm. Closing this issue.