@geekcojp/stylelint-config

    0.2.5 • Public • Published

    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

    Keywords

    Install

    npm i @geekcojp/stylelint-config

    DownloadsWeekly Downloads

    19

    Version

    0.2.5

    License

    MIT

    Unpacked Size

    4.96 kB

    Total Files

    6

    Last publish

    Collaborators

    • geek_hfukasaka
    • nju33
    • randy39
    • skawadu
    • wwk563388548
    • yamanoku