{"name":"stylelint-webpack-plugin","version":"2.5.0","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/index.js","types":"types/index.d.ts","engines":{"node":">= 10.13.0"},"scripts":{"start":"npm run build -- -w","clean":"del-cli dist types","prebuild":"npm run clean","build:types":"tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.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 || ^15.0.0","webpack":"^4.0.0 || ^5.0.0"},"dependencies":{"arrify":"^2.0.1","globby":"^11.1.0","jest-worker":"^28.1.3","micromatch":"^4.0.5","normalize-path":"^3.0.0","schema-utils":"^3.1.1"},"devDependencies":{"@babel/cli":"^7.21.0","@babel/core":"^7.21.0","@babel/preset-env":"^7.20.2","@commitlint/cli":"^16.2.4","@commitlint/config-conventional":"^16.2.4","@types/fs-extra":"^9.0.13","@types/micromatch":"^4.0.2","@types/node":"^18.14.6","@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":"^28.1.3","cross-env":"^7.0.3","del":"^6.1.1","del-cli":"^3.0.1","eslint":"^7.32.0","eslint-config-prettier":"^8.7.0","eslint-plugin-import":"^2.27.5","file-loader":"^6.2.0","fs-extra":"^9.1.0","husky":"^6.0.0","jest":"^28.1.3","lint-staged":"^11.2.6","npm-run-all":"^4.1.5","postcss-scss":"^3.0.5","prettier":"^2.8.4","standard-version":"^9.5.0","stylelint":"^15.2.0","typescript":"^4.9.5","webpack":"^5.76.0"},"keywords":["stylelint","lint","linter","plugin","webpack"],"readme":"<div align=\"center\">\n  <a href=\"https://github.com/stylelint/stylelint\"><img width=\"200\" height=\"200\" src=\"https://cdn.worldvectorlogo.com/logos/stylelint.svg\"></a>\n  <a href=\"https://github.com/webpack/webpack\"><img width=\"200\" height=\"200\" src=\"https://webpack.js.org/assets/icon-square-big.svg\"></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[![coverage][cover]][cover-url]\n[![chat][chat]][chat-url]\n[![size][size]][size-url]\n\n# stylelint-webpack-plugin\n\n> A Stylelint plugin for webpack\n\n## Install\n\n```bash\nnpm install stylelint-webpack-plugin@2 --save-dev\n```\n\n**Note**: You also need to install `stylelint` from npm, if you haven't already:\n\n```bash\nnpm install stylelint --save-dev\n```\n\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.\n\n## Usage\n\nIn your webpack configuration:\n\n```js\nconst StylelintPlugin = require('stylelint-webpack-plugin');\n\nmodule.exports = {\n  // ...\n  plugins: [new StylelintPlugin(options)],\n  // ...\n};\n```\n\n## Options\n\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.\n\n### `configFile`\n\n- Type: `String`\n- Default: `undefined`\n\nSpecify the config file location to be used by `stylelint`.\n\n**Note:** By default this is [handled by `stylelint`](http://stylelint.io/user-guide/configuration/).\n\n### `context`\n\n- Type: `String`\n- Default: `compiler.context`\n\nA string indicating the root of your files.\n\n### `exclude`\n\n- Type: `String|Array[String]`\n- Default: `['node_modules', compiler.options.output.path]`\n\nSpecify the files and/or directories to exclude. Must be relative to `options.context`.\n\n### `extensions`\n\n- Type: `String|Array[String]`\n- Default: `['css', 'scss', 'sass']`\n\nSpecify extensions that should be checked.\n\n### `files`\n\n- Type: `String|Array[String]`\n- Default: `null`\n\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`.\n\n### `fix`\n\n- Type: `Boolean`\n- Default: `false`\n\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.\n\n### `formatter`\n\n- Type: `String|Function`\n- Default: `'string'`\n\nSpecify the formatter that you would like to use to format your results. See [formatter option](https://stylelint.io/user-guide/node-api#formatter).\n\n### `lintDirtyModulesOnly`\n\n- Type: `Boolean`\n- Default: `false`\n\nLint only changed files, skip lint on start.\n\n### `stylelintPath`\n\n- Type: `String`\n- Default: `stylelint`\n\nPath to `stylelint` instance that will be used for linting.\n\n### `threads`\n\n- Type: `Boolean | Number`\n- Default: `false`\n\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.\n\n### Errors and Warning\n\n**By default the plugin will auto adjust error reporting depending on stylelint errors/warnings counts.**\nYou can still force this behavior by using `emitError` **or** `emitWarning` options:\n\n#### `emitError`\n\n- Type: `Boolean`\n- Default: `false`\n\nThe errors found will always be emitted, to disable set to `false`.\n\n#### `emitWarning`\n\n- Type: `Boolean`\n- Default: `false`\n\nThe warnings found will always be emitted, to disable set to `false`.\n\n#### `failOnError`\n\n- Type: `Boolean`\n- Default: `false`\n\nWill cause the module build to fail if there are any errors, to disable set to `false`.\n\n#### `failOnWarning`\n\n- Type: `Boolean`\n- Default: `false`\n\nWill cause the module build to fail if there are any warnings, if set to `true`.\n\n#### `quiet`\n\n- Type: `Boolean`\n- Default: `false`\n\nWill process and report errors only and ignore warnings, if set to `true`.\n\n#### `outputReport`\n\n- Type: `Boolean|Object`\n- Default: `false`\n\nWrite the output of the errors to a file, for example a `json` file for use for reporting.\nThe `filePath` is relative to the webpack config: `output.path`.\nYou can pass in a different formatter for the output file, if none is passed in the default/configured formatter will be used.\n\n```js\n{\n  filePath: 'path/to/file';\n  formatter: 'json';\n}\n```\n\n## Changelog\n\n[Changelog](CHANGELOG.md)\n\n## License\n\n[MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/stylelint-webpack-plugin/2x.svg\n[npm-url]: https://npmjs.com/package/stylelint-webpack-plugin/v/2x\n[node]: https://img.shields.io/node/v/stylelint-webpack-plugin/2x.svg\n[node-url]: https://nodejs.org\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[tests]: https://github.com/webpack-contrib/stylelint-webpack-plugin/workflows/stylelint-webpack-plugin/badge.svg?branch=2.x\n[tests-url]: https://github.com/webpack-contrib/stylelint-webpack-plugin/actions\n[cover]: https://codecov.io/gh/webpack-contrib/stylelint-webpack-plugin/branch/2.x/graph/badge.svg\n[cover-url]: https://codecov.io/gh/webpack-contrib/stylelint-webpack-plugin/branch/2.x\n[chat]: https://badges.gitter.im/webpack/webpack.svg\n[chat-url]: https://gitter.im/webpack/webpack\n[size]: https://packagephobia.now.sh/badge?p=stylelint-webpack-plugin\n[size-url]: https://packagephobia.now.sh/result?p=stylelint-webpack-plugin\n","readmeFilename":"README.md","gitHead":"190f38cec72cd2a297eae8e0130f0e225a13b676","_id":"stylelint-webpack-plugin@2.5.0","_nodeVersion":"19.7.0","_npmVersion":"8.13.2","dist":{"integrity":"sha512-UX+A4FzHM98VI+mnN4ZGDXnDOf3RC4+xk26nyveUQmIDx43dFYbZQHsZNVFl17La9+VQFpwOHh3c5Zv/kwAI3g==","shasum":"8dd1e8db5adfea7895c475af9ff0e9e386b6a93e","tarball":"http://registry-npm.ywwl.com/stylelint-webpack-plugin/download/stylelint-webpack-plugin-2.5.0.tgz","fileCount":18,"unpackedSize":45091,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH5936RwgIcEmos1iq+HvCrVypMtXuyNQL7mXOHczzDwIhAJ1CmZi7J1luKaM9wJl4BqtD/7vpP0+7Dc+wPl0vWa58"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCyrkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqsVw/6Ahdenx+grv8bYL0byd9991jGeTjwU3NaR0in8Ra8/O/V/t1Y\r\nDP1gqdqRCsfA630CdyO/ra4wKLdg2bQLdZF7mgXxf3GdA2/NktPpq7vVQdMa\r\nTffaKxmUNlDbkgzg1x5Vguuq8jTvVhFI4H44TtrLKo0mZWzR0SYaNfDynqQJ\r\nJzJLr/1Cl/lkBzKfOqE7LmyJI9m8mcmzeUXf37cyEwzCZjnalWNVVdkosW5P\r\nywrVikaMSfh/EyI0gnNgHbxxlvtoYiK0lX2ieqlVjEY/KIVPILDHwgE555uy\r\nt4pez1/Tc2dixJ2pYHQPV+JzGVqV9A2iRXNgxNP191ydrmLT+3+FQSeHNHND\r\nk4Mmzizv4YRK8lCTxEomO+vqcRmn6QAD5hY9lsnb2ZMfEq9IYRWPL9OdJazU\r\n/8nLRSJ24wMZKNud1NZ59UyjZ9LU5M5+Bpz6/1P1duGwLKbJX5TDjomNRPKe\r\nSmj/aek9Eg0U65x3ze/0ua6lJZ8uQgCD6dDG38jUX6ov1Loi15P+YGEhbKnm\r\nkzJT5/VqadV4FsOPX/62lecdZ9tOezDVv8v8noCPB05xK1gPBA6Ea4P6J6o0\r\n65M4R3+qMenGbMk6iVdC877cf4kKo8upi402S8kcbCW3NIKYag/vazq1wyx+\r\niolHl4qNstIE+Dd5OxDPUZmge1m29RyUo28=\r\n=biuI\r\n-----END PGP SIGNATURE-----\r\n","size":11654,"noattachment":false,"key":"/stylelint-webpack-plugin/-/stylelint-webpack-plugin-2.5.0.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.5.0_1678453476690_0.30975349148593545"},"_hasShrinkwrap":false,"publish_time":1678453476835,"_cnpm_publish_time":1678453476835,"dist-tags":{"2x":"2.5.0","latest":"5.1.0"}}