@ackmann-dickenson/stylelint-config

1.0.0 • Public • Published

@ackmann-dickenson/stylelint-config

npm

Extends stylelint-config-standard. Turns on additional rules to enforce A&D style conventions.

Installation

$ npm install --save-dev stylelint @ackmann-dickenson/stylelint-config

Usage

After installing both stylelint and the configuration packages set your .stylelintrc.js config file to:

module.exports = {
  extends: '@ackmann-dickenson/stylelint-config'
};

Your build process will vary based on the tools used in your project.

NPM

{
  "scripts": {
    "lint:styles": "stylelint '**/*.{css,scss}'"
  }
}
$ npm run lint:styles

Gulp

$ npm install --save-dev gulp gulp-stylelint
var gulp = require('gulp');
var gulpStylelint = require('gulp-stylelint');

gulp.task('lint:styles', function() {
  return gulp
    .src('**/*.scss')
    .pipe(
      gulpStylelint({
        reporters: [{ formatter: 'string', console: true }]
      })
    );
});
$ gulp lint:styles

Rules

To see everything that this config adds please refer to the rules documentation.

/@ackmann-dickenson/stylelint-config/

    Package Sidebar

    Install

    npm i @ackmann-dickenson/stylelint-config

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    46.5 kB

    Total Files

    26

    Last publish

    Collaborators

    • itaccounts
    • sreigle-mc