1.0.0 • Published 6 years ago
@ackmann-dickenson/stylelint-config v1.0.0
@ackmann-dickenson/stylelint-config
Extends stylelint-config-standard. Turns on additional rules to enforce A&D style conventions.
Installation
$ npm install --save-dev stylelint @ackmann-dickenson/stylelint-configUsage
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:stylesGulp
$ npm install --save-dev gulp gulp-stylelintvar 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:stylesRules
To see everything that this config adds please refer to the rules documentation.