sasstools / grunt-sass-lint

Grunt plugin for Sass Lint
MIT License
38 stars 21 forks source link

configFile not loading #34

Open ediamin opened 7 years ago

ediamin commented 7 years ago

Hi, I'm using v0.2.2. I'm trying to use the yml from Bootstrap but the yml file is not loading when I run grunt sasslint command. I'm using the exact file that you can get in Bootstrap repo except different indentation settings (4 space)

  Indentation:
    enabled: true
    allow_non_nested_indentation: false
    character: space # or 'tab'
    width: 4

My Gruntfile.js

module.exports = function (grunt) {
    'use strict';

    grunt.initConfig({
        sasslint: {
            options: {
                configFile: '.scss-lint.yml',
            },
            target: ['scss/style.scss']
        }
    });

    grunt.loadNpmTasks('grunt-sass-lint');
};

My directory tree

.
├── .scss-lint.yml
├── Gruntfile.js
├── package.json
└── scss
    └── style.scss

If you need to know anything else, please ask. Thank you.

dpa99c commented 6 years ago

It appears that the configFile option gets overwritten with an empty string - see here