@geekcojp/stylelint-config

@geekcojp stylelint config

Stats

StarsIssuesVersionUpdatedCreatedSize
@geekcojp/stylelint-config
0.2.52 years ago4 years agoMinified + gzip package size for @geekcojp/stylelint-config in KB

Readme

stylelint-config

stylelint config by GEEK,.inc. (Japan)

lerna

Usage

CLI (stylelint)

Install @geekcojp/stylelint-config.

yarn add -D @geekcojp/stylelint-config

Create config.js to root directory of the project as following.

module.exports = {
  "extends": "@geekcojp/stylelint-config",
}
stylelint --config config.js index.css

Gulp (Scss)

gulp.task('lint-styles', () => {
  return gulp.src('sass/**/*.scss').pipe(
    $.postcss(
      [
        stylelint({
          extends: '@geekcojp/stylelint-config',
        }),
        reporter({
          clearReportedMessages: true,
        }),
      ],
      {
        syntax: require('postcss-scss'),
      },
    ),
  );
});

gulp.task('watch', () => {
  gulp.watch(['sass/**/*.scss'], ['lint-styles']);
});

gulp.task('default', ['watch']);

Override

module.exports = {
  "extends": "@geekcojp/stylelint-config",
  "rules": {
     // Add Rules
  }
}

Change Log

  • 2019/07/16 fix nesting Rules
  • 2018/08/21 Add Scss Rules
  • 2018/01/15 Publish

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.