{"name":"stylelint-webpack-plugin","version":"0.10.5","publishConfig":{"tag":"next"},"description":"A stylelint plugin for webpack","license":"MIT","repository":{"type":"git","url":"git+https://github.com/webpack-contrib/stylelint-webpack-plugin.git"},"author":{"name":"Javier Sánchez-Marín","email":"javiersanchezmarin@gmail.com"},"homepage":"https://github.com/webpack-contrib/stylelint-webpack-plugin","bugs":{"url":"https://github.com/webpack-contrib/stylelint-webpack-plugin/issues"},"main":"index.js","engines":{"node":">= 6.9.0"},"scripts":{"commitlint":"commitlint","commitmsg":"commitlint -e $GIT_PARAMS","lint":"eslint --cache src test","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}","lint-staged":"lint-staged","release":"standard-version","release:ci":"conventional-github-releaser -p angular","release:validate":"commitlint --from=$(git describe --tags --abbrev=0) --to=$(git rev-parse HEAD)","security":"nsp check","test":"cross-env WEBPACK_VERSION=4 mocha","test:watch":"echo 'Jest Not Implemented'","test:coverage":"echo 'Jest Not Implemented'","ci:lint":"npm run lint && npm run security","ci:test":"npm run test -- --runInBand","ci:coverage":"npm run test:coverage -- --runInBand","defaults":"webpack-defaults"},"files":["lib/","index.js"],"keywords":["stylelint","lint","linter","node-sass","webpack","plugin","webpack-plugin"],"peerDependencies":{"stylelint":"^8.0.0","webpack":"^1.13.2 || ^2.7.0 || ^3.11.0 || ^4.4.0"},"dependencies":{"arrify":"^1.0.1","micromatch":"^3.1.8","object-assign":"^4.1.0","ramda":"^0.25.0"},"devDependencies":{"@commitlint/cli":"^6.1.3","@commitlint/config-angular":"^6.1.3","@webpack-contrib/eslint-config-webpack":"^2.0.2","babel-cli":"^6.26.0","babel-jest":"^22.4.3","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.1","chai":"^4.0.2","conventional-github-releaser":"^1.1.3","coveralls":"^3.0.0","cross-env":"^5.1.3","del":"^3.0.0","del-cli":"^1.1.0","dotenv":"^5.0.0","eslint":"^4.19.1","eslint-plugin-import":"^2.10.0","eslint-plugin-prettier":"^2.6.0","husky":"^0.14.3","lint-staged":"^7.0.1","memory-fs":"^0.4.1","mocha":"^5.0.0","npm-install-version":"^6.0.2","nsp":"^3.2.1","nyc":"^11.4.1","pre-commit":"^1.2.2","prettier":"^1.11.1","standard-version":"^4.3.0","stylelint":"^8.4.0","testdouble":"^3.3.1","webpack":"^4.4.1","webpack-defaults":"^2.1.1"},"pre-commit":"lint-staged","lint-staged":{"*.js":["eslint --fix","git add"]},"readme":"<div align=\"center\">\n  <a href=\"https://github.com/webpack/webpack\">\n    <img width=\"200\" height=\"200\" src=\"https://webpack.js.org/assets/icon-square-big.svg\">\n  </a>\n</div>\n\n[![npm][npm]][npm-url]\n[![node][node]][node-url]\n[![deps][deps]][deps-url]\n[![tests][tests]][tests-url]\n[![chat][chat]][chat-url]\n\n# stylelint-webpack-plugin\n\nA Stylelint plugin for webpack\n\n## Requirements\n\nThis module requires a minimum of Node v6.9.0 and webpack v4.0.0.\n\n## Differences With stylelint-loader\n\nBoth [`stylelint-loader`](https://github.com/adrianhall/stylelint-loader) and\nthis module have their uses. `stylelint-loader` lints the files you `require` \n(or the ones you define as an `entry` in your `webpack` config). However,\n`@imports` in files are not followed, meaning only the main file for each\n`require/entry` is linted.\n\n`stylelint-webpack-plugin` allows defining a\n[glob pattern](https://en.wikipedia.org/wiki/Glob_(programming)) matching the\nconfiguration and use of `stylelint`.\n\n## Getting Started\n\nTo begin, you'll need to install `stylelint-webpack-plugin`:\n\n```console\n$ npm install stylelint-webpack-plugin --save-dev\n```\n\nThen add the plugin to your `webpack` config. For example:\n\n**file.ext**\n```js\nimport file from 'file.ext';\n```\n\n```js\n// webpack.config.js\nconst StyleLintPlugin = require('stylelint-webpack-plugin');\n\nmodule.exports = {\n  // ...\n  plugins: [\n    new StyleLintPlugin(options),\n  ],\n  // ...\n}\n```\n\nAnd run `webpack` via your preferred method.\n\n## Options\n\nSee stylelint's [options](http://stylelint.io/user-guide/node-api/#options) for\nthe complete list of options available. These options are passed through to the\n`stylelint` directly.\n\n### `configFile`\n\nType: `String`\nDefault: `undefined`\n\nSpecify the config file location to be used by `stylelint`.\n\n_Note: By default this is\n[handled by `stylelint`](http://stylelint.io/user-guide/configuration/) via\ncosmiconfig._\n\n### `context`\n\nType: `String`\nDefault: `compiler.context`\n\nA `String` indicating the root of your `SCSS` files.\n\n### `emitErrors`\n\nType: `Boolean`\nDefault: `true`\n\nIf true, pipes `stylelint` error severity messages to the `webpack` compiler's\nerror message handler.\n\n_Note: When this property is disabled all `stylelint` messages are piped to the\n`webpack` compiler's warning message handler._\n\n### `failOnError`\n\nType: `Boolean`\nDefault: `false`\n\nIf true, throws a fatal error in the global build process. This will end the\nbuild process on any `stylelint` error.\n\n### `files`\n\nType: `String|Array[String]`\nDefault: `'**/*.s?(a|c)ss'`\n\nSpecify the glob pattern for finding files. Must be relative to `options.context`.\n\n### `formatter`\n\nType: `Object`\nDefault: `require('stylelint').formatters.string`\n\nSpecify a custom formatter to format errors printed to the console.\n\n### `lintDirtyModulesOnly`\n\nType: `Boolean`\nDefault: `false`\n\nLint only changed files, skip lint on start.\n\n### `syntax`\n\nType: `String`\nDefault: `undefined`\n\nSee the `styelint`\n[user guide](https://stylelint.io/user-guide/node-api/#syntax) for more info.\ne.g. use `'scss'` to lint .scss files.\n\n## Error Reporting\n\nBy default the plugin will dump full reporting of errors. Set `failOnError` to\ntrue if you want `webpack` build process breaking with any stylelint error. You\ncan use the `quiet` option to avoid error output to the console.\n\n## Acknowledgement\n\nThis project was inspired by, and is a heavily modified version of\n`sasslint-webpack-plugin`.\n\nThanks to Javier ([@vieron](https://github.com/vieron)) for authoring this\nplugin.\n\n## License\n\n#### [MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/stylelint-webpack-plugin.svg\n[npm-url]: https://npmjs.com/package/stylelint-webpack-plugin\n\n[node]: https://img.shields.io/node/v/stylelint-webpack-plugin.svg\n[node-url]: https://nodejs.org\n\n[deps]: https://david-dm.org/webpack-contrib/stylelint-webpack-plugin.svg\n[deps-url]: https://david-dm.org/webpack-contrib/stylelint-webpack-plugin\n\n[tests]: \thttps://img.shields.io/circleci/project/github/webpack-contrib/stylelint-webpack-plugin.svg\n[tests-url]: https://circleci.com/gh/webpack-contrib/stylelint-webpack-plugin\n\n[cover]: https://codecov.io/gh/webpack-contrib/stylelint-webpack-plugin/branch/master/graph/badge.svg\n[cover-url]: https://codecov.io/gh/webpack-contrib/stylelint-webpack-plugin\n\n[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg\n[chat-url]: https://gitter.im/webpack/webpack","readmeFilename":"README.md","gitHead":"b244ff7f6298447eca44f502d6ae750233839ce5","_id":"stylelint-webpack-plugin@0.10.5","_npmVersion":"5.6.0","_nodeVersion":"10.1.0","_npmUser":{"name":"shellscape","email":"andrew@shellscape.org"},"dist":{"integrity":"sha512-jtYx3aJ2qDMvBMswe5NRPTO7kJgAKafc6GilAkWDp/ewoAmnoxA6TsYMnIPtLECRLwXevaCPvlh2JEUMGZCoUQ==","shasum":"0b6e0d373ff5e03baa8197ebe0f2625981bd266b","tarball":"http://registry-npm.ywwl.com/stylelint-webpack-plugin/download/stylelint-webpack-plugin-0.10.5.tgz","fileCount":9,"unpackedSize":14950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9JLTCRA9TVsSAnZWagAAPJcQAJ8Z1DiYNvcE0Vmiy61M\npQ0gyM0hLQFIGwmJOFQnMigx8RTwsYVk4vM1Y0TBU3t7wTbGW+JIgJ8LxACA\n/Ticsf2Y6Itft6s2dqPJTSLqfhbScmsbUtc+yadgtgRZqAO4d6sx1OpqOblt\nzK+43b6yDX2bPHEa83+kbwTfHmz6PCtNehSq/xe0JDbwId6IyZ06gKJVUezZ\nlT03G7quHBz/8EwYEuDkBrIyh9F10kX+DvmzAffB54QNC0lGTvcqowOCth6c\nuN5aQxOpftD7A35Hxy4YtH0w0CCcHjcH+R8Ios2Wf5RlEnstcUTD/Zt2K0Rv\n3qQj9Zs2+9WwxM0ElCTtZ4dyr+o8705hsqXv26nqUIHihS4HRrEzrMVeEtQl\n8cvhEAzOq06aBQ5TJqlxb4udoAr4s9Ye5G2vVZFcK4Pgaqy/1MPuxVnTlqDl\neOrlLLVoy6r2fuGC0MOBl8Zh0lInrVAVdIZLKnw91lou8I2MHzd1TU44Eky8\nDJy3ZqZ80TENIhozsSI8UcbWq1ezodj0tip4mlRAc+K1liw49DdbkMHEUc4h\nGVSKYxk+/3xLIHXK2X5iKlhC+LrK7OevdReDWS6AuIPWxeZVURfGFXNFtGJ8\nnJBwbe7oE4CN89V4NKEgu3GPrkRdzG6AT4pKHMfXZYOvbC3XdV0A3GdYPN5k\nRxRC\r\n=8tE0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJc8R6rqv843+m65QlEPO5sdm14sSY6RPXz1jQiWnF+AIgNl2slTEQJ0r/n6OvxLMljghQE+vkAI7mNQZtDDJgp60="}],"size":5879,"noattachment":false,"key":"/stylelint-webpack-plugin/-/stylelint-webpack-plugin-0.10.5.tgz"},"maintainers":[{"email":"wiens.joshua@gmail.com","name":"d3viant0ne"},{"email":"jgkurian@me.com","name":"jakxz"},{"email":"andrew@shellscape.org","name":"shellscape"},{"email":"javiersanchezmarin@gmail.com","name":"vieron"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-webpack-plugin_0.10.5_1525977811053_0.28813798785057076"},"_hasShrinkwrap":false,"publish_time":1525977811161,"_cnpm_publish_time":1525977811161,"dist-tags":{"2x":"2.5.0","latest":"5.1.0"}}