yujinakayama / atom-lint

Obsolete: Generic code linting support for Atom
https://atom.io/packages/atom-lint
MIT License
111 stars 33 forks source link

How Can SCSS-Lint Be Configured? #36

Closed bobrocke closed 10 years ago

bobrocke commented 10 years ago

I'd like to configure some options in scss-lint to conform to my project's coding style. How is that done?

yujinakayama commented 10 years ago

See: https://github.com/causes/scss-lint#configuration

bobrocke commented 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?

yujinakayama commented 10 years ago

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.

benfrain commented 10 years ago

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).