1.0.0 • Published 5 years ago

@ackmann-dickenson/stylelint-config v1.0.0

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

@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.

1.0.0

5 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago