stylelint-ackmann-dickenson
Extends stylelint-config-standard
.
Turns on additional rules to enforce A&D style conventions. To see everything that this config adds, please see the rules documentation.
Installation
npm install --save-dev stylelint @ackmann-dickenson/stylelint-config
Usage
After installing stylelint-ackmann-dickenson
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-postcss postcss-reporter
var gulp = require('gulp');
var postcss = require('gulp-postcss');
gulp.task('lint:styles', function() {
return gulp
.src('**/*.scss')
.pipe(
postcss([
require('stylelint')(),
require('postcss-reporter')({ clearReportedMessages: true })
])
);
});
gulp lint:styles