Skip to content

Commit

Permalink
[FEATURE] - stylelint fix now supported
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelBenin committed Nov 29, 2017
1 parent 7b23e31 commit c83fd35
Show file tree
Hide file tree
Showing 4 changed files with 437 additions and 1,405 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

### 9.0.1

### Changed

* Style lint fix now supported
* npm run fix-all

### 9.0.0

### Changed
Expand Down
18 changes: 0 additions & 18 deletions gulpfile.babel.js/tasks/gulp_style_lint.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import gulp from 'gulp';
import stylelint from 'gulp-stylelint';
import stylefmt from 'gulp-stylefmt';
import path from 'path';
import { clone } from 'lodash';
import config from '../configs/config';

const configFilePath = path.join(__dirname, './../configs/.stylelintrc');
Expand All @@ -21,19 +19,3 @@ gulp.task('style-lint', function lintSass() {
})
);
});

gulp.task('style-lint-fix', function styleLintFix() {
// stylelint fix has issues with our main file
// this project is still in progress
// TODO: open an issue on stylefmt with this example
const src = clone(config.stylelint.src);
src.push('!./src/client/styles/main.scss');
return gulp
.src(src)
.pipe(
stylefmt({
config: configFilePath
})
)
.pipe(gulp.dest('src'));
});
Loading

0 comments on commit c83fd35

Please sign in to comment.