{"name":"gulp-stylelint","version":"10.0.0","description":"Gulp plugin for running Stylelint results through various reporters.","main":"src/index.js","scripts":{"lint":"eslint \"{src,test}/**/*.js\"","test":"tape \"test/*.spec.js\"","prepublishOnly":"npm run lint && 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"},"dependencies":{"chalk":"^2.4.2","fancy-log":"^1.3.3","mkdirp":"^0.5.1","plugin-error":"^1.0.1","source-map":"^0.7.3","strip-ansi":"^5.2.0","through2":"^3.0.1"},"devDependencies":{"eslint":"^6.5.1","eslint-config-stylelint":"^11.1.0","gulp":"^4.0.2","gulp-clean-css":"^4.2.0","gulp-concat":"^2.6.1","gulp-rename":"^1.4.0","gulp-sourcemaps":"^2.6.5","sinon":"^7.5.0","stylelint":"^11.1.1","tape":"^4.11.0"},"eslintConfig":{"extends":["stylelint"],"parserOptions":{"ecmaVersion":2017}},"gitHead":"3fde667a30c333107c39e281ac189f9664365d28","_id":"gulp-stylelint@10.0.0","_nodeVersion":"8.15.1","_npmVersion":"6.12.0","dist":{"integrity":"sha512-k4NZwtqRIiFnk0g1yb4UZ/+axnTVPMMDqzz1XPMLI0PPBgx91TDBzbVZexuMLUeVNoEYW8iMRUKrk3NDS+WNJw==","shasum":"4e2bfa13765274cded63597b337184cd6d3f95d5","tarball":"http://registry-npm.ywwl.com/gulp-stylelint/download/gulp-stylelint-10.0.0.tgz","fileCount":7,"unpackedSize":16561,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpKcJCRA9TVsSAnZWagAAU+MQAJRonlHewSsdTFrY43qT\nMEtqjLnRFHioYMSpsxnIfovGRJbKZZLlgWNsyGpcK7YWQ74sPF3v9QRgic+W\nSB6yboLtg7ObHDIUOyE3pzlUp3rq16U4kh4Jbvey/LAK5XGspws7o5rv6yyP\n+e2/tXp9iMZOBWAce8s1iIEY64I4yAm8tOlK8ymqujgfpSbe599Ys2PwvjTT\nL7iAGie+1rpwuM+ludkcMeycK7MrVwT67nDHHuIUuhBaBgmSC0kNum8cVAyd\nLE944ZMYBhDZHJg6eAYbiq07TkvtzifgqtQB/DLnil/0rjO0JhPSHmZkTQ84\nFaFW1pqcrtv+fVAtBn2s/k/PlOg41plOJaLbM+TJdZ+CLM/YsM4ObJhsYEzy\n08tmuyOKY2K9/YDv/TEgCclCfdexETdT/GVKKyETJ+jgqB42FUgUHqPn+9K9\n6rTO7Sr+/i87GzuEItgwp1lMuuAJoWE3Ls9yVEMn0esEC4ljr57pP3xtLfVA\nqm1p/hc6pl1KPJ9/lEwlqqsU8JXExQrPodRJ3a2//iX/AechU2vuA/K0SLoF\nJBH9tJLV+sa2bjvHrt8fKAyUITtYC0ZUJUhFkUmMq9nmk0HcVBqXRJARtx9v\n87EVxv1h0oAptofMX1Svs5JX0+n6bqR8zO7jS5W+Xlj8Zx+0tMq3SK8Wkxxg\nUhFH\r\n=3Tyq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHi46Ezg1MVgYo+jXAEKgroTuciaV/Tk9MUhwit9lOEnAiAxM71rsa1V2wFOjCR1skDFzYEIBv/XYPjrwOn9N/ltKA=="}],"size":5896,"noattachment":false,"key":"/gulp-stylelint/-/gulp-stylelint-10.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_10.0.0_1571071753081_0.601896326621304"},"_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":1571071753225,"_cnpm_publish_time":1571071753225,"dist-tags":{"latest":"13.0.0"}}