wikimedia/grunt-stylelint

Example Configuration

bitstarr opened this issue ยท 9 comments

I would love to see a grunt config example in the readme. I'm just a frontend dev an not soo keen in node development, so i'm pretty left alone with your current usage description :(

I can provide an example for you. Here you go:

stylelint: {
    scss: {
        options: {
            configFile: 'helpers/task-configs/stylelint.config.js',
            format: 'scss'
        },
        src: [
            'src/scss/**/*.scss',
            '!src/scss/styles.scss'
        ]
    }
}

Have a nice day.

The original use of this was in https://github.com/wikimedia/oojs-ui/blob/master/Gruntfile.js#L351 โ€” will see if I can add something a tad simpler, though.

Thanks for the help. It's simpler than i thought, but i head no idea how to start with this.

Th snippet of @Sebastian-Fitzner and maybe a bit help about the possible options will be enought documentation to start.

ntwb commented

Rather than format: 'scss' that should be syntax: 'scss'

@bitstarr With a5ea1e6 merged, is this ready to be resolved?

Well, the example above is much more verbose than the one in the merge :(

@bitstarr Don't understand your last comment, being more verbose in giving examples is not in your interest?

Sorry, the example in the merge is not giving so much information about the options as the example of @Sebastian-Fitzner in this thread.

@Volker-E , I agree with @bitstarr , @Sebastian-Fitzner 's example is a lot clearer than the one in a5ea1e6.