{"name":"gulp-stylelint","version":"3.0.0","description":"Gulp plugin for running Stylelint results through various reporters.","main":"dist/index.js","scripts":{"lint":"eslint src/**/*.js","test":"tape -r babel-register test/*.spec.js","transpile":"babel src --out-dir dist","prepublish":"npm run lint && npm test && npm run transpile"},"repository":{"type":"git","url":"git+https://github.com/olegskl/gulp-stylelint.git"},"keywords":["gulpplugin","stylelint","postcss","css"],"author":{"name":"Oleg Sklyanchuk","email":"sklyanchuk@gmail.com","url":"http://olegskl.com"},"license":"MIT","bugs":{"url":"https://github.com/olegskl/gulp-stylelint/issues"},"homepage":"https://github.com/olegskl/gulp-stylelint","dependencies":{"chalk":"^1.1.3","deep-extend":"^0.4.1","gulp-util":"^3.0.7","mkdirp":"^0.5.1","promise":"^7.1.1","stylelint":"^7.0.0","through2":"^2.0.1"},"devDependencies":{"babel-cli":"^6.7.7","babel-core":"^6.7.7","babel-preset-es2015":"^6.6.0","babel-register":"^6.7.2","eslint":"^2.8.0","eslint-config-meetic":"^2.0.0","gulp":"^3.9.1","sinon":"^1.17.3","tape":"^4.5.1"},"gitHead":"892a776cd6b40e800fe11e27880580f1be217cd8","_id":"gulp-stylelint@3.0.0","_shasum":"5e58722cd831d0e76beeec8543f154f3f079f9fc","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"olegskl","email":"sklyanchuk@gmail.com"},"dist":{"shasum":"5e58722cd831d0e76beeec8543f154f3f079f9fc","tarball":"http://registry-npm.ywwl.com/gulp-stylelint/download/gulp-stylelint-3.0.0.tgz","integrity":"sha512-f93ZiBx3fIZ0jRj6hbkKFgghXELstFWKNMJNaPQYt5CEadcAREwONl6jGml6EaPQFKxbYGScW4TpoI8hct9KNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICY2L72wvXHvBPT1wFTNOXecQdMQJkgM61YP06cgfoCwAiAq7FP1sir4OH9KXtDUZnZxIi5v/SQoy/+kHNXYyMCjCw=="}],"size":6115,"noattachment":false,"key":"/gulp-stylelint/-/gulp-stylelint-3.0.0.tgz"},"maintainers":[{"name":"olegskl","email":"sklyanchuk@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/gulp-stylelint-3.0.0.tgz_1468484992492_0.7707075539510697"},"directories":{},"readme":"# gulp-stylelint\n\n[![NPM version](http://img.shields.io/npm/v/gulp-stylelint.svg)](https://www.npmjs.org/package/gulp-stylelint)\n[![Build Status](https://travis-ci.org/olegskl/gulp-stylelint.svg?branch=master)](https://travis-ci.org/olegskl/gulp-stylelint)\n[![Dependency Status](https://david-dm.org/olegskl/gulp-stylelint.svg)](https://david-dm.org/olegskl/gulp-stylelint)\n[![Join the chat at https://gitter.im/olegskl/gulp-stylelint](https://badges.gitter.im/olegskl/gulp-stylelint.svg)](https://gitter.im/olegskl/gulp-stylelint?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\nA [Gulp](http://gulpjs.com/) plugin that runs [stylelint](https://github.com/stylelint/stylelint) results through a list of reporters.\n\n## Installation\n\n```bash\nnpm install stylelint gulp-stylelint --save-dev\n```\n\n## Quick start\n\nOnce you have [configured stylelint](http://stylelint.io/user-guide/configuration/) (e.g. you have a *.stylelintrc* file), start with the following code. You will find additional configuration [options](#options) below.\n\n```js\nconst gulp = require('gulp');\n\ngulp.task('lint-css', function lintCssTask() {\n  const gulpStylelint = require('gulp-stylelint');\n\n  return gulp\n    .src('src/**/*.css')\n    .pipe(gulpStylelint({\n      reporters: [\n        {formatter: 'string', console: true}\n      ]\n    }));\n});\n```\n\n## Formatters\n\nBelow is the list of currently available stylelint formatters. Some of them are bundled with stylelint by default and exposed on `gulpStylelint.formatters` object. Others need to be installed. You can [write a custom formatter](http://stylelint.io/developer-guide/formatters/) to tailor the reporting to your needs.\n\n - `\"string\"` (same as `gulpStylelint.formatters.string`) – bundled with stylelint\n - `\"verbose\"` (same as `gulpStylelint.formatters.verbose`) – bundled with stylelint\n - `\"json\"` (same as `gulpStylelint.formatters.json`) – bundled with stylelint\n -  [stylelint-checkstyle-formatter](https://github.com/davidtheclark/stylelint-checkstyle-formatter) – requires installation\n\n## Options\n\ngulp-stylelint supports all [stylelint options](http://stylelint.io/user-guide/node-api/#options) except [`files`](http://stylelint.io/user-guide/node-api/#files) and [`formatter`](http://stylelint.io/user-guide/node-api/#formatter) and accepts a custom set of options listed below:\n\n```js\nconst gulp = require('gulp');\n\ngulp.task('lint-css', function lintCssTask() {\n  const gulpStylelint = require('gulp-stylelint');\n  const myStylelintFormatter = require('my-stylelint-formatter');\n\n  return gulp\n    .src('src/**/*.css')\n    .pipe(gulpStylelint({\n      failAfterError: true,\n      reportOutputDir: 'reports/lint',\n      reporters: [\n        {formatter: 'verbose', console: true},\n        {formatter: 'json', save: 'report.json'},\n        {formatter: myStylelintFormatter, save: 'my-custom-report.txt'}\n      ],\n      debug: true\n    }));\n});\n```\n\n#### `failAfterError`\n\nWhen set to `true`, the process will end with non-zero error code if any error-level warnings were raised. Defaults to `true`.\n\n#### `reportOutputDir`\n\nBase directory for lint results written to filesystem. Defaults to current working directory.\n\n#### `reporters`\n\nList of reporter configuration objects (see below). Defaults to an empty array.\n\n```js\n{\n  // stylelint results formatter (required):\n  // - pass a function for imported, custom or exposed formatters\n  // - pass a string (\"string\", \"verbose\", \"json\") for formatters bundled with stylelint\n  formatter: myFormatter,\n\n  // save the formatted result to a file (optional):\n  save: 'text-report.txt',\n\n  // log the formatted result to console (optional):\n  console: true\n}\n```\n\n#### `debug`\n\nWhen set to `true`, the error handler will print an error stack trace. Defaults to `false`.\n\n## Autofix\n\nThe `fix: true` option instructs stylelint to try to fix as many issues as possible. The fixes are applied to the gulp stream. The fixed content can be saved to file using `gulp.dest`.\n\n```js\nconst gulp = require('gulp');\n\ngulp.task('fix-css', function fixCssTask() {\n  const gulpStylelint = require('gulp-stylelint');\n\n  return gulp\n    .src('src/**/*.css')\n    .pipe(gulpStylelint({\n      fix: true\n    }))\n    .pipe(gulp.dest('src'));\n});\n```\n\n## License\n\n[MIT License](http://opensource.org/licenses/MIT)\n","publish_time":1468484994373,"_cnpm_publish_time":1468484994373,"dist-tags":{"latest":"13.0.0"}}