stylelint-formatter-table
1.0.4 • Public • Published stylelint-formatter-table
A table formatter for Stylelint
Install
Using yarn:
$ yarn add stylelint-formatter-table --dev
Using npm:
$ npm i stylelint-formatter-table -D
Usage
Stylelint CLI
$ stylelint file.css --custom-formatter=node_modules/stylelint-formatter-table
const styleLintPlugin = require('stylelint-webpack-plugin');
const stylelintFormatter = require('stylelint-formatter-table');
module.exports = {
plugins: [
new styleLintPlugin({
formatter: stylelintFormatter
}),
],
}
const gulp = require('gulp');
const stylelint = require('gulp-stylelint');
const stylelintFormatter = require('stylelint-formatter-table');
gulp.task('lint', () =>
gulp.src('file.css')
.pipe(stylelint({
reporters: [ {
formatter: stylelintFormatter,
console: true
} ]
}));
);
const stylelintFormatter = require('stylelint-formatter-table');
grunt.initConfig({
stylelint: {
options: {
formatter: stylelintFormatter
},
all: ['css/**/*.css']
}
});
grunt.loadNpmTasks('grunt-stylelint');
grunt.registerTask('default', ['stylelint']);
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.4
149
Version History
Package Sidebar
Install
npm i stylelint-formatter-table
Weekly Downloads