Closed bobrocke closed 10 years ago
I'll give that a try. When does the .scss-lint.yml
file go?
In the root of the project?
In the same folder as the Atom package?
scss-lint
will automatically recognize and load any file with the name.scss-lint.yml
as a configuration file. It loads the configuration based on the location of the file being linted, starting from that file's directory and ascending until a configuration file is found.
Please read the documentation before asking.
Anyone got this working? As per the documentation that @yujinakayama referenced, I have placed my YAML file in the root of my project (so all Sass files are deeper and the Linter should ascend up and find it).
Here is my yml file:
CapitalizationInSelector:
enabled: false
Indentation:
enabled: false
Comment:
enabled: false
SpaceBeforeBrace:
enabled: false
StringQuotes:
enabled: false
PropertySortOrder:
enabled: false
EmptyLineBetweenBlocks:
enabled: false
NameFormat:
enabled: false
Note I have also tried like this:
linters:
CapitalizationInSelector:
enabled: false
Indentation:
enabled: false
Comment:
enabled: false
SpaceBeforeBrace:
enabled: false
StringQuotes:
enabled: false
PropertySortOrder:
enabled: false
EmptyLineBetweenBlocks:
enabled: false
NameFormat:
enabled: false
However, with this file in place no linting of the Scss occurs. If a blank .scss-lint.yml is used, the Linter works (albeit with the default tests, some of which I obviously wish to exclude).
I'd like to configure some options in scss-lint to conform to my project's coding style. How is that done?