{"name":"gulp-stylelint","version":"11.0.0","description":"Gulp plugin for running Stylelint results through various reporters.","main":"src/index.js","scripts":{"lint":"eslint \"{src,test}/**/*.js\"","tape":"tape \"test/*.spec.js\"","test":"npm run lint && npm run tape","prepublishOnly":"npm test"},"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":">=8.15.1"},"peerDependencies":{"stylelint":"^10.1.0 || ^11.0.0 || ^12.0.0"},"dependencies":{"chalk":"^3.0.0","fancy-log":"^1.3.3","mkdirp":"^0.5.1","plugin-error":"^1.0.1","source-map":"^0.7.3","strip-ansi":"^6.0.0","through2":"^3.0.1"},"devDependencies":{"eslint":"^6.7.2","eslint-config-stylelint":"^11.1.0","gulp":"^4.0.2","gulp-clean-css":"^4.2.0","gulp-concat":"^2.6.1","gulp-rename":"^2.0.0","gulp-sourcemaps":"^2.6.5","sinon":"^7.5.0","stylelint":"^12.0.0","tape":"^4.11.0"},"eslintConfig":{"extends":["stylelint"],"parserOptions":{"ecmaVersion":2017}},"gitHead":"073cb66c3a300d650a1be4dfc714a17a2798c082","_id":"gulp-stylelint@11.0.0","_nodeVersion":"12.13.0","_npmVersion":"6.13.3","dist":{"integrity":"sha512-Hk2DungSqeWIye5hgmB36IMN9oIIsOBieAaQZw0HAVuIljDGcfH6ng0wmJf3G418jv6KCdgpTZb0EIN1L5KXEw==","shasum":"f1154f9a8b31b43b5819d8be1845e68d7b2a6a66","tarball":"http://registry-npm.ywwl.com/gulp-stylelint/download/gulp-stylelint-11.0.0.tgz","fileCount":7,"unpackedSize":16727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7+EQCRA9TVsSAnZWagAATtcP/0W7cia3hdoV4RYAebnW\nJPrUl/paeRYc72sAoYweUx55uVZCBRtVbfqTaqnOqyNFmnWUFK3ScGfKNSkR\nGsaphJNLDQR73LsYUtGvq2RN+N3ENQul+IGNjzrvqV2LvAyf+3z24Fe8jz15\nQrpkkRRmhUAdBbLpaEnh9t2GU7UlTqoT864+429rSzrgScxy/lppUjlCzr8G\nCD8rRjbU1VhEjaoLk2SFza+V4FNQWNdtqGFHljvJl1r9z98N1Eofv3bD6cdw\nVPm1h1WlV04lcNXtzfSveTLtSbDylZn0VLY0qygnj78MBZGtvFtUJkB1cSo3\nhpaot1xMAafdrHwxkpifm/V+AUOkaZ5vQ989gWgzBuGEA2JVqFXe9zlU2g4X\nUVRHaagLh0U7HUjwFJoR+xk9LUCOlxNH+YZS82UzNuPV+rvfslCUEQHvL4ZF\n9fQNE5qtFQv68nQ2PdxBvMmU27Uyh8TQRS8xe8nO9z6+H/Q0njI2dxbmdM2V\naDkXnJmxOiBLWuX0mlPxS2Zr7xN3bTGkE5JOgU4EuqIol2JgydVuLFZmc25h\npOjC0c2AsmxPWw33sC4vabrVYpJeaQwcXXIscQQl6LqKK+lSet1gpzYDbLAC\nVBHmpd6G+Ouj7nvv/uI9BnnQsxISaPSNTyymfBwi2FIdN5WROrHKvYVbrvl5\ncbp3\r\n=MpiO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICxvmfX1DgDszPjVM+yQdmrMXASkp5ct4P3nrIV+x5m4AiEAzld3Dd0hgAafy/ULjvHkkE06Etpo2luWA3jHa0AK1Ok="}],"size":5923,"noattachment":false,"key":"/gulp-stylelint/-/gulp-stylelint-11.0.0.tgz"},"maintainers":[{"name":"olegskl","email":"sklyanchuk@gmail.com"}],"_npmUser":{"name":"olegskl","email":"sklyanchuk@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-stylelint_11.0.0_1576001807629_0.8402305494138607"},"_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":1576001807734,"_cnpm_publish_time":1576001807734,"dist-tags":{"latest":"13.0.0"}}