ahmednuaman / grunt-scss-lint

A Grunt task to lint your SCSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How grunt-scss-lint can exclude some files or directory?

douglasdeodato opened this issue · comments

I am using grunt-scss-lint with sucess.

but I wanna exclude a folder or files, but after runt he task still catching the folder, any idea how to exclude the file or directory?

in the docs says:

exclude

Type: String or Array
Default: null
Exclude one or more files from being linted.
grunt task
scsslint: {
        allFiles: [
          'scss/_main.scss',
        ],
        options: {
          config: 'scss/.scss-lint.yml',
          reporterOutput: '.tmp/scss-lint-report.xml',
          colorizeOutput: true,
          compact:false,
        },
        exclude: [
            'scss/vendor/font-awesome/font-awesome.scss'

          ]
      },

any ideas?

fixed exclude should go inside options.

       allFiles: [
          'scss/_main.scss',
        ],
        options: {
          config: 'scss/.scss-lint.yml',
          reporterOutput: '.tmp/scss-lint-report.xml',
          colorizeOutput: true,
          compact:false,
          exclude: [
            'scss/vendor/font-awesome/font-awesome.scss'
          ]
        },
      },