0

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?

Update:

fixed moving exclude to the options.

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'

              ]
            }
          },
raduken
  • 2,091
  • 16
  • 67
  • 105

1 Answers1

3

The exclude configuration must be moved to within the options object:

options: {
    config: 'scss/.scss-lint.yml',
    reporterOutput: '.tmp/scss-lint-report.xml',
    colorizeOutput: true,
    compact:false,
    exclude: [
        'scss/vendor/font-awesome/font-awesome.scss'
    ]
},
76484
  • 8,498
  • 3
  • 19
  • 30