0.0.3 • Published 4 years ago

@tci_ysato/stylelint-config v0.0.3

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

stylelint-config

Usage

CLI (stylelint)

Install @tci_ysato/stylelint-config.

yarn add -D @tci_ysato/stylelint-config

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

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

Gulp (Scss)

gulp.task('lint-styles', () => {
  return gulp.src('sass/**/*.scss').pipe(
    $.postcss(
      [
        stylelint({
          extends: '@tci_ysato/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": "@tci_ysato/stylelint-config",
  "rules": {
     // Add Rules
  }
}

Change Log

  • 2020/03/04 Publish
0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago