{"name":"eslint-webpack-plugin","version":"5.0.3","keywords":["eslint","lint","linter","plugin","webpack"],"author":{"name":"Ricardo Gobbo de Souza","email":"ricardogobbosouza@yahoo.com.br"},"license":"MIT","_id":"eslint-webpack-plugin@5.0.3","maintainers":[{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"sokra","email":"tobias.koppers@googlemail.com"},{"name":"jhnns","email":"mail@johannesewald.de"},{"name":"15000621931","email":"784487301@qq.com"},{"name":"ev1stensberg","email":"evenstensberg@gmail.com"},{"name":"__hai","email":"haijie0619@gmail.com"},{"name":"ricardogobbosouza","email":"ricardogobbosouza@yahoo.com.br"}],"homepage":"https://github.com/webpack/eslint-webpack-plugin","bugs":{"url":"https://github.com/webpack/eslint-webpack-plugin/issues"},"dist":{"shasum":"9a772cd0a4cd4a9063fc93eb356e33777aafe73e","tarball":"http://registry-npm.ywwl.com/eslint-webpack-plugin/download/eslint-webpack-plugin-5.0.3.tgz","fileCount":18,"integrity":"sha512-P2Id4RMSMQMwMEuw3W9x3n2qDbKPeD+tehWMY3ENFsoSPKNZ9i3WTZEsFE7NeQIpNebhNEGw8qorvpLVq1rK1g==","signatures":[{"sig":"MEYCIQDkVk+fdk01p/9Wdt6DaxLmOjnqwgw1VlmV4LG6MOePAQIhANCIoz6xmsI31HRxIv28glRe/FvNHzwc8YLCazxagOKY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53495,"size":14298,"noattachment":false,"key":"/eslint-webpack-plugin/-/eslint-webpack-plugin-5.0.3.tgz"},"main":"dist/index.js","types":"types/index.d.ts","engines":{"node":">= 18.12.0"},"funding":{"url":"https://opencollective.com/webpack","type":"opencollective"},"gitHead":"d64d515e8858a678fb84ea7a84dd7ef0a65a07af","scripts":{"fix":"npm-run-all -l fix:code fix:prettier","lint":"npm-run-all -l -p \"lint:**\"","test":"npm run test:coverage","build":"npm-run-all -p \"build:**\"","clean":"del-cli dist types","start":"npm run build -- -w","prepare":"npm run build","pretest":"npm run lint","release":"standard-version","fix:code":"npm run lint:code -- --fix","prebuild":"npm run clean","security":"npm audit --omit=dev","lint:code":"eslint --cache .","test:only":"cross-env NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest --testTimeout=60000","build:code":"cross-env NODE_ENV=production babel src -d dist --copy-files","commitlint":"commitlint --from=main","lint:types":"tsc --pretty --noEmit","test:watch":"npm run test:only -- --watch","build:types":"tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write","fix:prettier":"npm run lint:prettier -- --write","lint:prettier":"prettier -w --list-different .","lint:spelling":"cspell \"**/*.*\"","test:coverage":"npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage"},"_npmUser":{"name":"ricardogobbosouza","email":"ricardogobbosouza@yahoo.com.br"},"repository":{"url":"git+https://github.com/webpack/eslint-webpack-plugin.git","type":"git"},"_npmVersion":"11.11.0","description":"A ESLint plugin for webpack","directories":{},"_nodeVersion":"22.22.0","dependencies":{"flatted":"^3.3.3","micromatch":"^4.0.8","jest-worker":"^29.7.0","schema-utils":"^4.3.2","@types/eslint":"^9.6.1","normalize-path":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"del":"^8.0.0","jest":"^30.0.0","husky":"^9.1.7","cspell":"^8.19.4","eslint":"^9.33.0","del-cli":"^6.0.0","webpack":"^5.99.9","chokidar":"^4.0.3","fs-extra":"^11.3.0","prettier":"^3.6.2","cross-env":"^7.0.3","@babel/cli":"^7.27.2","@eslint/js":"^9.33.0","typescript":"^5.5.3","@babel/core":"^7.27.4","@types/node":"^22.15.30","lint-staged":"^15.5.2","npm-run-all":"^4.1.5","@commitlint/cli":"^19.8.1","@types/fs-extra":"^11.0.4","eslint-plugin-n":"^17.21.0","@eslint/markdown":"^7.0.0","standard-version":"^9.5.0","@babel/preset-env":"^7.27.2","@types/micromatch":"^4.0.9","typescript-eslint":"^8.39.1","eslint-plugin-jest":"^29.0.1","eslint-plugin-jsdoc":"^54.0.0","eslint-plugin-import":"^2.32.0","@types/normalize-path":"^3.0.2","eslint-config-webpack":"^4.6.0","eslint-plugin-unicorn":"^60.0.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.4","@stylistic/eslint-plugin":"^5.2.3","@commitlint/config-conventional":"^19.8.1"},"peerDependencies":{"eslint":"^8.0.0 || ^9.0.0","webpack":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-webpack-plugin_5.0.3_1772218323312_0.7759142279516542","host":"s3://npm-registry-packages-npm-production"},"readme":"<div align=\"center\">\n  <a href=\"https://github.com/eslint/eslint\"><img width=\"200\" height=\"200\" src=\"https://cdn.worldvectorlogo.com/logos/eslint.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[![tests][tests]][tests-url]\n[![coverage][cover]][cover-url]\n[![discussion][discussion]][discussion-url]\n[![size][size]][size-url]\n\n# eslint-webpack-plugin\n\n> This version of eslint-webpack-plugin only supports webpack 5. For the webpack 4, see the [2.x branch](https://github.com/webpack/eslint-webpack-plugin/tree/2.x).\n\nThis plugin uses [`ESlint`](https://eslint.org/) to find and fix problems in your JavaScript code during the Webpack build process.\n\n## Getting Started\n\nTo begin, you'll need to install `eslint-webpack-plugin`:\n\n```console\nnpm install eslint-webpack-plugin --save-dev\n```\n\nor\n\n```console\nyarn add -D eslint-webpack-plugin\n```\n\nor\n\n```console\npnpm add -D eslint-webpack-plugin\n```\n\n> [!NOTE]\n>\n> You also need to install `eslint >= 9` from npm, if you haven't already:\n\n```console\nnpm install eslint --save-dev\n```\n\nor\n\n```console\nyarn add -D eslint\n```\n\nor\n\n```console\npnpm add -D eslint\n```\n\nThen add the plugin to your webpack configuration. For example:\n\n```js\nconst ESLintPlugin = require(\"eslint-webpack-plugin\");\n\nmodule.exports = {\n  // ...\n  plugins: [new ESLintPlugin(options)],\n  // ...\n};\n```\n\n## Options\n\nYou can pass [ESLint Node.js API options](https://eslint.org/docs/latest/integrate/nodejs-api#-new-eslintoptions).\n\n> [!NOTE]\n>\n> The config option you provide will be passed to the `ESLint` class.\n> See the [ESlint docs](https://eslint.org/docs/latest/integrate/nodejs-api#-new-eslintoptions) for more details.\n\n### `cache`\n\n- Type:\n\n```ts\ntype cache = boolean;\n```\n\n- Default: `true`\n\nThe cache is enabled by default to decrease execution time.\n\n### `cacheLocation`\n\n- Type:\n\n```ts\ntype cacheLocation = string;\n```\n\n- Default: `node_modules/.cache/eslint-webpack-plugin/.eslintcache`\n\nSpecify the path to the cache location. Can be a file or a directory.\n\n### `configType`\n\n- Type:\n\n```ts\ntype configType = \"flat\" | \"eslintrc\";\n```\n\n- Default: `flat`\n\nSpecify the type of configuration to use with ESLint.\n\n- `flat` is the current standard configuration format.\n- `eslintrc` is the legacy configuration format and has been officially deprecated.\n\nThe new configuration format is explained in its [own documentation](https://eslint.org/docs/latest/use/configure/configuration-files).\n\n### `context`\n\n- Type:\n\n```ts\ntype context = string;\n```\n\n- Default: `compiler.context`\n\nBase directory for linting.\n\n### `eslintPath`\n\n- Type:\n\n```ts\ntype eslintPath = string;\n```\n\n- Default: `eslint`\n\nPath to `eslint` instance that will be used for linting.\n\nIf the `eslintPath` is a folder like a official ESlint, or specify a `formatter` option, now you don't have to install `eslint`.\n\n### `extensions`\n\n- Type:\n\n```ts\ntype extensions = string | string[];\n```\n\n- Default: `'js'`\n\nSpecify file extensions that should be checked.\n\n### `exclude`\n\n- Type:\n\n```ts\ntype exclude = string | string[];\n```\n\n- Default: `'node_modules'`\n\nSpecify the files/directories to exclude. Must be relative to `options.context`.\n\n### `resourceQueryExclude`\n\n- Type:\n\n```ts\ntype resourceQueryExclude = RegExp | RegExp[];\n```\n\n- Default: `[]`\n\nSpecify the resource query to exclude.\n\n### `files`\n\n- Type:\n\n```ts\ntype files = string | string[];\n```\n\n- Default: `null`\n\nSpecify directories, files, or globs. Must be relative to `options.context`.\nDirectories are traversed recursively looking for files matching `options.extensions`.\nFile and glob patterns ignore `options.extensions`.\n\n### `fix`\n\n- Type:\n\n```ts\ntype fix = boolean;\n```\n\n- Default: `false`\n\nWill enable [ESLint autofix feature](https://eslint.org/docs/latest/integrate/nodejs-api#-eslintoutputfixesresults).\n\n**Be careful: this option will modify source files.**\n\n### `formatter`\n\n- Type:\n\n```ts\ntype formatter =\n  | string\n  | ((\n      results: import(\"eslint\").ESLint.LintResult[],\n      data?: import(\"eslint\").ESLint.LintResultData | undefined,\n    ) => string);\n```\n\n- Default: `'stylish'`\n\nAccepts a function that receives an array of ESLint messages (object) as its argument and must return a string as output.\n\nYou can use official [ESlint formatters](https://eslint.org/docs/user-guide/formatters/).\n\n### `lintDirtyModulesOnly`\n\n- Type:\n\n```ts\ntype lintDirtyModulesOnly = boolean;\n```\n\n- Default: `false`\n\nLint only changed files, skipping initial lint on build start.\n\n### Errors and Warning\n\n**By default the plugin will auto adjust error reporting depending on eslint errors/warnings counts.**\n\nYou can still force this behavior by using `emitError` **or** `emitWarning` options:\n\n#### `emitError`\n\n- Type:\n\n```ts\ntype emitError = boolean;\n```\n\n- Default: `true`\n\nThe errors found will always be emitted, to disable set to `false`.\n\n#### `emitWarning`\n\n- Type:\n\n```ts\ntype emitWarning = boolean;\n```\n\n- Default: `true`\n\nThe warnings found will always be emitted, to disable set to `false`.\n\n#### `failOnError`\n\n- Type:\n\n```ts\ntype failOnError = boolean;\n```\n\n- Default: `true`\n\nWill cause the module build to fail if any errors are found, to disable set to `false`.\n\n#### `failOnWarning`\n\n- Type:\n\n```ts\ntype failOnWarning = boolean;\n```\n\n- Default: `false`\n\nWill cause the module build to fail if any warnings are found, if set to `true`.\n\n#### `quiet`\n\n- Type:\n\n```ts\ntype quiet = boolean;\n```\n\n- Default: `false`\n\nWill process and report errors only and ignore warnings, if set to `true`.\n\n#### `outputReport`\n\n- Type:\n\n```ts\ntype outputReport =\n  | boolean\n  | {\n      filePath?: string | undefined;\n      formatter?:\n        | (\n            | string\n            | ((\n                results: import(\"eslint\").ESLint.LintResult[],\n                data?: import(\"eslint\").ESLint.LintResultData | undefined,\n              ) => string)\n          )\n        | undefined;\n    };\n```\n\n- Default: `false`\n\nWrite ESLint results to a file, for example a checkstyle xml file for use for reporting on Jenkins CI.\n\n- filePath: Path to output report file (relative to output.path or absolute).\n- formatter: You can pass in a different `formatter` for the output file.\n  if none is passed in the default/configured formatter will be used.\n\n## Changelog\n\n[Changelog](CHANGELOG.md)\n\n## Contributing\n\nWe welcome all contributions!\n\nIf you're new here, please take a moment to review our contributing guidelines.\n\n[CONTRIBUTING](https://github.com/webpack/eslint-webpack-plugin?tab=contributing-ov-file#contributing)\n\n## License\n\n[MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/eslint-webpack-plugin.svg\n[npm-url]: https://npmjs.com/package/eslint-webpack-plugin\n[node]: https://img.shields.io/node/v/eslint-webpack-plugin.svg\n[node-url]: https://nodejs.org\n[tests]: https://github.com/webpack/eslint-webpack-plugin/workflows/eslint-webpack-plugin/badge.svg\n[tests-url]: https://github.com/webpack/eslint-webpack-plugin/actions\n[cover]: https://codecov.io/gh/webpack/eslint-webpack-plugin/branch/main/graph/badge.svg\n[cover-url]: https://codecov.io/gh/webpack/eslint-webpack-plugin\n[discussion]: https://img.shields.io/github/discussions/webpack/webpack\n[discussion-url]: https://github.com/webpack/webpack/discussions\n[size]: https://packagephobia.now.sh/badge?p=eslint-webpack-plugin\n[size-url]: https://packagephobia.now.sh/result?p=eslint-webpack-plugin\n","publish_time":1772218323465,"_cnpm_publish_time":1772218323465,"dist-tags":{"2x":"2.7.0","latest":"6.0.0"}}