{"name":"stylelint-webpack-plugin","version":"2.3.2","description":"A Stylelint plugin for webpack","license":"MIT","repository":{"type":"git","url":"git+https://github.com/webpack-contrib/stylelint-webpack-plugin.git"},"author":{"name":"Ricardo Gobbo de Souza","email":"ricardogobbosouza@yahoo.com.br"},"homepage":"https://github.com/webpack-contrib/stylelint-webpack-plugin","bugs":{"url":"https://github.com/webpack-contrib/stylelint-webpack-plugin/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"main":"dist/cjs.js","types":"declarations/index.d.ts","engines":{"node":">= 10.13.0"},"scripts":{"start":"npm run build -- -w","clean":"del-cli dist declarations","prebuild":"npm run clean","build:types":"tsc --declaration --emitDeclarationOnly --outDir declarations && prettier \"declarations/**/*.ts\" --write","build:code":"cross-env NODE_ENV=production babel src -d dist --copy-files","build":"npm-run-all -p \"build:**\"","commitlint":"commitlint --from=master","security":"npm audit","lint:prettier":"prettier -w --list-different .","lint:js":"eslint --cache .","lint:types":"tsc --pretty --noEmit","lint":"npm-run-all -l -p \"lint:**\"","test:only":"cross-env NODE_ENV=test jest --testTimeout=60000","test:watch":"npm run test:only -- --watch","test:coverage":"npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage","pretest":"npm run lint","test":"npm run test:coverage","prepare":"husky install && npm run build","release":"standard-version"},"peerDependencies":{"stylelint":"^13.0.0 || ^14.0.0","webpack":"^4.0.0 || ^5.0.0"},"dependencies":{"arrify":"^2.0.1","globby":"^11.0.4","jest-worker":"^27.3.1","micromatch":"^4.0.4","normalize-path":"^3.0.0","schema-utils":"^3.1.1"},"devDependencies":{"@babel/cli":"^7.16.0","@babel/core":"^7.16.0","@babel/preset-env":"^7.16.0","@commitlint/cli":"^12.1.4","@commitlint/config-conventional":"^12.1.4","@types/fs-extra":"^9.0.13","@types/micromatch":"^4.0.2","@types/normalize-path":"^3.0.0","@types/webpack":"^5.28.0","@webpack-contrib/eslint-config-webpack":"^3.0.0","babel-eslint":"^10.1.0","babel-jest":"^27.3.1","chokidar":"^3.5.2","cross-env":"^7.0.3","del":"^6.0.0","del-cli":"^3.0.1","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.2","file-loader":"^6.2.0","fs-extra":"^9.1.0","husky":"^6.0.0","jest":"^27.3.1","lint-staged":"^10.5.4","npm-run-all":"^4.1.5","postcss-scss":"^3.0.5","prettier":"^2.4.1","standard-version":"^9.3.2","stylelint":"^14.0.1","typescript":"^4.4.4","webpack":"^5.62.1"},"keywords":["stylelint","lint","linter","plugin","webpack"],"readme":"<div align=\"center\">\r\n  <a href=\"https://github.com/stylelint/stylelint\"><img width=\"200\" height=\"200\" src=\"https://cdn.worldvectorlogo.com/logos/stylelint.svg\"></a>\r\n  <a href=\"https://github.com/webpack/webpack\"><img width=\"200\" height=\"200\" src=\"https://webpack.js.org/assets/icon-square-big.svg\"></a>\r\n</div>\r\n\r\n[![npm][npm]][npm-url]\r\n[![node][node]][node-url]\r\n[![deps][deps]][deps-url]\r\n[![tests][tests]][tests-url]\r\n[![coverage][cover]][cover-url]\r\n[![chat][chat]][chat-url]\r\n[![size][size]][size-url]\r\n\r\n# stylelint-webpack-plugin\r\n\r\n> A Stylelint plugin for webpack\r\n\r\n## Install\r\n\r\n```bash\r\nnpm install stylelint-webpack-plugin@2 --save-dev\r\n```\r\n\r\n**Note**: You also need to install `stylelint` from npm, if you haven't already:\r\n\r\n```bash\r\nnpm install stylelint --save-dev\r\n```\r\n\r\n**Note**: If you are using Stylelint 13 rather than 14+, you might also need to install `@types/stylelint` as a dev dependency if getting stylelint related type errors.\r\n\r\n## Usage\r\n\r\nIn your webpack configuration:\r\n\r\n```js\r\nconst StylelintPlugin = require('stylelint-webpack-plugin');\r\n\r\nmodule.exports = {\r\n  // ...\r\n  plugins: [new StylelintPlugin(options)],\r\n  // ...\r\n};\r\n```\r\n\r\n## Options\r\n\r\nSee [stylelint's options](http://stylelint.io/user-guide/node-api/#options) for the complete list of options available. These options are passed through to the `stylelint` directly.\r\n\r\n### `configFile`\r\n\r\n- Type: `String`\r\n- Default: `undefined`\r\n\r\nSpecify the config file location to be used by `stylelint`.\r\n\r\n**Note:** By default this is [handled by `stylelint`](http://stylelint.io/user-guide/configuration/).\r\n\r\n### `context`\r\n\r\n- Type: `String`\r\n- Default: `compiler.context`\r\n\r\nA string indicating the root of your files.\r\n\r\n### `exclude`\r\n\r\n- Type: `String|Array[String]`\r\n- Default: `['node_modules', compiler.options.output.path]`\r\n\r\nSpecify the files and/or directories to exclude. Must be relative to `options.context`.\r\n\r\n### `extensions`\r\n\r\n- Type: `String|Array[String]`\r\n- Default: `['css', 'scss', 'sass']`\r\n\r\nSpecify extensions that should be checked.\r\n\r\n### `files`\r\n\r\n- Type: `String|Array[String]`\r\n- Default: `null`\r\n\r\nSpecify directories, files, or globs. Must be relative to `options.context`. Directories are traveresed recursively looking for files matching `options.extensions`. File and glob patterns ignore `options.extensions`.\r\n\r\n### `fix`\r\n\r\n- Type: `Boolean`\r\n- Default: `false`\r\n\r\nIf `true`, `stylelint` will fix as many errors as possible. The fixes are made to the actual source files. All unfixed errors will be reported. See [Autofixing errors](https://stylelint.io/user-guide/cli#autofixing-errors) docs.\r\n\r\n### `formatter`\r\n\r\n- Type: `String|Function`\r\n- Default: `'string'`\r\n\r\nSpecify the formatter that you would like to use to format your results. See [formatter option](https://stylelint.io/user-guide/node-api#formatter).\r\n\r\n### `lintDirtyModulesOnly`\r\n\r\n- Type: `Boolean`\r\n- Default: `false`\r\n\r\nLint only changed files, skip lint on start.\r\n\r\n### `stylelintPath`\r\n\r\n- Type: `String`\r\n- Default: `stylelint`\r\n\r\nPath to `stylelint` instance that will be used for linting.\r\n\r\n### `threads`\r\n\r\n- Type: `Boolean | Number`\r\n- Default: `false`\r\n\r\nSet to true for an auto-selected pool size based on number of cpus. Set to a number greater than 1 to set an explicit pool size. Set to false, 1, or less to disable and only run in main process.\r\n\r\n### Errors and Warning\r\n\r\n**By default the plugin will auto adjust error reporting depending on stylelint errors/warnings counts.**\r\nYou can still force this behavior by using `emitError` **or** `emitWarning` options:\r\n\r\n#### `emitError`\r\n\r\n- Type: `Boolean`\r\n- Default: `false`\r\n\r\nThe errors found will always be emitted, to disable set to `false`.\r\n\r\n#### `emitWarning`\r\n\r\n- Type: `Boolean`\r\n- Default: `false`\r\n\r\nThe warnings found will always be emitted, to disable set to `false`.\r\n\r\n#### `failOnError`\r\n\r\n- Type: `Boolean`\r\n- Default: `false`\r\n\r\nWill cause the module build to fail if there are any errors, to disable set to `false`.\r\n\r\n#### `failOnWarning`\r\n\r\n- Type: `Boolean`\r\n- Default: `false`\r\n\r\nWill cause the module build to fail if there are any warnings, if set to `true`.\r\n\r\n#### `quiet`\r\n\r\n- Type: `Boolean`\r\n- Default: `false`\r\n\r\nWill process and report errors only and ignore warnings, if set to `true`.\r\n\r\n#### `outputReport`\r\n\r\n- Type: `Boolean|Object`\r\n- Default: `false`\r\n\r\nWrite the output of the errors to a file, for example a `json` file for use for reporting.\r\nThe `filePath` is relative to the webpack config: `output.path`.\r\nYou can pass in a different formatter for the output file, if none is passed in the default/configured formatter will be used.\r\n\r\n```js\r\n{\r\n  filePath: 'path/to/file';\r\n  formatter: 'json';\r\n}\r\n```\r\n\r\n## Changelog\r\n\r\n[Changelog](CHANGELOG.md)\r\n\r\n## License\r\n\r\n[MIT](./LICENSE)\r\n\r\n[npm]: https://img.shields.io/npm/v/stylelint-webpack-plugin/2x.svg\r\n[npm-url]: https://npmjs.com/package/stylelint-webpack-plugin/v/2x\r\n[node]: https://img.shields.io/node/v/stylelint-webpack-plugin/2x.svg\r\n[node-url]: https://nodejs.org\r\n[deps]: https://david-dm.org/webpack-contrib/stylelint-webpack-plugin.svg\r\n[deps-url]: https://david-dm.org/webpack-contrib/stylelint-webpack-plugin\r\n[tests]: https://github.com/webpack-contrib/stylelint-webpack-plugin/workflows/stylelint-webpack-plugin/badge.svg?branch=2.x\r\n[tests-url]: https://github.com/webpack-contrib/stylelint-webpack-plugin/actions\r\n[cover]: https://codecov.io/gh/webpack-contrib/stylelint-webpack-plugin/branch/2.x/graph/badge.svg\r\n[cover-url]: https://codecov.io/gh/webpack-contrib/stylelint-webpack-plugin/branch/2.x\r\n[chat]: https://badges.gitter.im/webpack/webpack.svg\r\n[chat-url]: https://gitter.im/webpack/webpack\r\n[size]: https://packagephobia.now.sh/badge?p=stylelint-webpack-plugin\r\n[size-url]: https://packagephobia.now.sh/result?p=stylelint-webpack-plugin\r\n","readmeFilename":"README.md","gitHead":"e93934c93f276b2bfacb791e724ffed057eab7bc","_id":"stylelint-webpack-plugin@2.3.2","_nodeVersion":"16.10.0","_npmVersion":"8.1.3","dist":{"integrity":"sha512-gjerWQ7nY+4JdebL3LTDPp80DV10O1OOWtM+v+W29+ThzLsKGz3UptEVd0jVdFpWEohEXVilbnan2b/YXxakqA==","shasum":"edb849250fb829349ddb41bc07d343c39d3391ce","tarball":"http://registry-npm.ywwl.com/stylelint-webpack-plugin/download/stylelint-webpack-plugin-2.3.2.tgz","fileCount":20,"unpackedSize":48344,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4LRDCRA9TVsSAnZWagAAZmEP/2PQIarW04Cf3YhDVKAS\nPCebUS1qQFckncXBdfu7Ehjb52KcnYRr3hqVhuXBbSeVp/eJGyk+xpW4RWoY\nU4jfYo11gCHNT82W4mGli9t5X/n6dYyfeiInVGOszNJLpHG7tpKxsgibOdHq\ng+CCY/PgJMNYY8OVD8hs2TJv+8mYvQ+fsTUjDYZB6OJqRM+ht7Ixwlk6Lum1\nVgIyl1Gl9l3wLwG3BHWCQw9XlULVPOryyxHXq5D72rNnBW7yJGwOM0paILXs\n1fiBkqImK16qWjxjMn7ptfkYN2dcD9riLfCFvYcR6BRunjLqej8qNFxHej/5\nTxBIzKctte8DtpcKCmO4+7E7BbkUMz5O1g/XCh+NVCqZzf0e2BNVLiUwI9X9\n9AmbQYGCIqTlG5hYxUuQxXu37FhticYCo/gQaFZzTPNmPeBuatUpqsV1W+bO\nrSBAq4OaiGf6bT7+JU5OnX6Ca75qe0IP0JJNzaPtPScFqoQrc1azMojk/nw6\n/JzXZeYGrz1EmsvmHF5zhz3MN1FI21Hd6ozTSICeaXjDMtp8N0LQs92cPu+X\naaM4t9TQn4TKttkfAwZ8MrzoybluLcvrM2TAWlu7dFnykVn5hoOu7pVEuT63\nE+K79uMGK9SijT9o3Nv6eZM2+XCWBLlIH9862XhWwjSPWnSzqarR57/VEfzg\nZAWw\r\n=jn0B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdRRq53+Z66EdgAInxeMP4eI+2svBMVlI13vVX/EGemgIhAJtjFnOuBjivWcEPjZqCRP01K/BcWhkTGo9fbmlIC3g7"}],"size":11803,"noattachment":false,"key":"/stylelint-webpack-plugin/-/stylelint-webpack-plugin-2.3.2.tgz"},"_npmUser":{"name":"ricardogobbosouza","email":"ricardogobbosouza@yahoo.com.br"},"directories":{},"maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"sokra","email":"tobias.koppers@googlemail.com"},{"name":"jhnns","email":"mail@johannesewald.de"},{"name":"ricardogobbosouza","email":"ricardogobbosouza@yahoo.com.br"},{"name":"jakxz","email":"jasonk92@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stylelint-webpack-plugin_2.3.2_1642116162935_0.6207778056699447"},"_hasShrinkwrap":false,"publish_time":1642116163131,"_cnpm_publish_time":1642116163131,"dist-tags":{"2x":"2.5.0","latest":"5.1.0"}}