{"name":"gulp-stylelint","version":"8.0.0","description":"Gulp plugin for running Stylelint results through various reporters.","main":"dist/index.js","scripts":{"lint":"eslint {src,test}/**/*.js","test":"tape -r babel-register test/*.spec.js","transpile":"babel src --out-dir dist","prepublishOnly":"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","engines":{"node":">=6"},"peerDependencies":{"stylelint":"^9.6.0"},"dependencies":{"chalk":"^2.3.0","deep-extend":"^0.5.0","fancy-log":"^1.3.2","mkdirp":"^0.5.1","plugin-error":"^1.0.1","promise":"^8.0.1","source-map":"^0.5.6","strip-ansi":"^4.0.0","through2":"^2.0.3"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","eslint":"^4.12.1","eslint-config-meetic":"^5.0.1","gulp":"^3.9.1","gulp-clean-css":"^3.9.0","gulp-concat":"^2.6.1","gulp-rename":"^1.2.2","gulp-sourcemaps":"^2.6.1","sinon":"^4.1.2","stylelint":"^9.6.0","tape":"^4.8.0"},"gitHead":"029a2fd304657686ed741d2f6bb667aa3c97ff43","_id":"gulp-stylelint@8.0.0","_npmVersion":"6.2.0","_nodeVersion":"9.11.1","_npmUser":{"name":"olegskl","email":"sklyanchuk@gmail.com"},"dist":{"integrity":"sha512-oEnOsRzS4wObF25dUXF4Mi7lSACUoVbnUt7/ZJqEBsnF+2NWUWf7DHnG3CAQvioAQ+rteeduuyN0TAqxoeNy2Q==","shasum":"b8de497b2dce2ab466d323961f310cf502198bbf","tarball":"http://registry-npm.ywwl.com/gulp-stylelint/download/gulp-stylelint-8.0.0.tgz","fileCount":11,"unpackedSize":18711,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0GN/CRA9TVsSAnZWagAAGo8P/10Gv/cJMZ9DD1ELlyqg\nwQN+GtbeHfYhBZIcE4FspauDmNxw4XEKK+9BajcdkJIKEQyHj95W/0mfGBx8\nBRzfCLtOZkEkmHHMyzdcShkxsOVBoGTZ2Ch8hkXlT0VqDMfDn8CBbITm1EG3\nUouuHGpUUnsXfoyqG0jNkta5KdbjbG31jE0nnZ6f3ATouyG2bsFv3aFo16yI\n1DDumIN6CxL6GFACxlX6qvDihXjtZYH+wSquDFutXkX2aOjH+UIqfOf0pJFO\nPrX2UcLZxTShG9KSAvM6Xt/nkV+pgROHVd8fhA/XbmyDDVywvLMT7wWHpxAS\nWsUbvlN5BNvRj6t//g/fIh2s9YPX530t0t9o8DuTh8JM8Jv/b3WZ9MSanC2f\n4Tx1n7JWEkpLNDZa5qFkrwLzNn4HAy0QX3gKCg5K6D8EEMJqlLxbQ+IcTsQK\nQoo6LRsyTNlFzYQHJwzUnO6i0xxDtGDyUxeyU4S7UPbnbZR2Lw29DiWIF+Ov\nS8MdBRyqfFdgkTjnBGQnj55bD5A12SNGSaqVwqBaiMHDmtEGE8B6IuATUIas\n6AXD9TGMf4b/CAfTYWsfuH/Hbb3eep6WX080d0w7koIwwMOoPiZSVOYMrmxK\ngrxL8ktCYFdnZqnJtFGC/U3B8h6VGdj3B8iGCB9Hl062llU2ribup6y6+bkm\ntM0t\r\n=UPOI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAVYbRs0zsaog7cFwgLqVPqv6ziGsGxMFlDhmwCgsazwAiEA128xFH+DKxFeF/8hV0kDCxL7ueKxr5DGJj7xQhX9p8s="}],"size":6411,"noattachment":false,"key":"/gulp-stylelint/-/gulp-stylelint-8.0.0.tgz"},"maintainers":[{"name":"olegskl","email":"sklyanchuk@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-stylelint_8.0.0_1540383614459_0.588166056272375"},"_hasShrinkwrap":false,"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":1540383614539,"_cnpm_publish_time":1540383614539,"dist-tags":{"latest":"13.0.0"}}