1.0.0 • Published 3 months ago

yeoman-stylelint v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

yeoman-stylelint

This package seeks to solve a single problem. Using gulp-stylelint as a Yeoman transform stream causes a crash if there are any conflicts during the Yeoman run. I want to pre-lint my SCSS so that it doesn't come out of the tin broken.

usage

First, require/import the module:

const stylelint = require('yeoman-stylelint');

import stylelint from 'yeoman-stylelint';

Then, in your generator constructor, add something similar to:

this.registerTransformStream(
  gulpIf(
    /\.scss$/,
    stylelint({ configFile: path.join(__dirname, '..', '.stylelintrc' }))
  )
);

Now, all .scss files that are written by Yeoman will be preprocessed with stylelint, automatically fixing what it can.

1.0.0

3 months ago

0.2.0

3 months ago

0.1.3

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago