mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Don’t lint SCSS files that have come from outside
We should (and do) keep exact copies of SCSS files that have come from elsewhere so that we can easily upgrade them. But sometimes they don’t always pass our linting rules, or throw a lot of warnings, which is noisy. This commit: - moves such files into their own subdirectory - tells SCSS Lint to ignore files in this directory
This commit is contained in:
@@ -108,7 +108,11 @@ gulp.task('watchForChanges', function() {
|
||||
});
|
||||
|
||||
gulp.task('lint:sass', () => gulp
|
||||
.src(paths.src + 'stylesheets/**/*.scss')
|
||||
.src([
|
||||
paths.src + 'stylesheets/*.scss',
|
||||
paths.src + 'stylesheets/components/*.scss',
|
||||
paths.src + 'stylesheets/views/*.scss',
|
||||
])
|
||||
.pipe(plugins.sassLint())
|
||||
.pipe(plugins.sassLint.format(stylish))
|
||||
.pipe(plugins.sassLint.failOnError())
|
||||
|
||||
Reference in New Issue
Block a user