{"name":"eslint-import-resolver-webpack","version":"0.13.11","description":"Resolve paths to dependencies, given a webpack.config.js. Plugin for eslint-plugin-import.","main":"index.js","scripts":{"prepublishOnly":"cp ../../{LICENSE,.npmrc} ./","tests-only":"nyc mocha -t 5s","test":"npm run tests-only"},"repository":{"type":"git","url":"git+https://github.com/import-js/eslint-plugin-import.git","directory":"resolvers/webpack"},"keywords":["eslint-plugin-import","eslint","jsnext","modules","webpack"],"author":{"name":"Ben Mosher","url":"me@benmosher.com"},"license":"MIT","bugs":{"url":"https://github.com/import-js/eslint-plugin-import/issues"},"homepage":"https://github.com/import-js/eslint-plugin-import/tree/HEAD/resolvers/webpack","dependencies":{"debug":"^3.2.7","enhanced-resolve":"^0.9.1","find-root":"^1.1.0","hasown":"^2.0.2","interpret":"^1.4.0","is-core-module":"^2.16.1","is-regex":"^1.2.1","lodash":"^4.18.1","resolve":"^2.0.0-next.6","semver":"^5.7.2"},"peerDependencies":{"eslint-plugin-import":">=1.4.0","webpack":">=1.11.0"},"devDependencies":{"babel-plugin-istanbul":"^4.1.6","babel-register":"^6.26.0","chai":"^3.5.0","mocha":"^3.5.3","nyc":"^11.9.0","webpack":"git+https://gist.github.com/9cdb687f3806f8e6cb8a365d0b7840eb.git"},"engines":{"node":">= 6"},"gitHead":"364c941f57ce98370e82ef183b2dae114615e5ca","_id":"eslint-import-resolver-webpack@0.13.11","_nodeVersion":"25.8.2","_npmVersion":"11.11.1","dist":{"integrity":"sha512-RGFDrCHSmCKGuaoI1zmZT028weIFIEyfSy0nAwzp5rplutWDC+BBjvZS2l4bEgSOfjc+ILkSLxeszkslyNO6fQ==","shasum":"ec7ba80033e491adb09af0e6fcf66755e0d15aca","tarball":"http://registry-npm.ywwl.com/eslint-import-resolver-webpack/download/eslint-import-resolver-webpack-0.13.11.tgz","fileCount":5,"unpackedSize":21141,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHxIgmyEz5y6+Q18y7t3ipxdmRmabHQEBH8KpopTRZsvAiAfRw3ZMLjFe77sGIXSNDUCXIvUf+3KLi1Y9N4Tr/zRlw=="}],"size":6893,"noattachment":false,"key":"/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.13.11.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"jfmengels","email":"jfm.engels@gmail.com"},{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"benmosher","email":"me@benmosher.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-import-resolver-webpack_0.13.11_1775140116587_0.48552432534070955"},"_hasShrinkwrap":false,"readme":"# eslint-import-resolver-webpack\n\n[![npm](https://img.shields.io/npm/v/eslint-import-resolver-webpack.svg)](https://www.npmjs.com/package/eslint-import-resolver-webpack)\n\nWebpack-literate module resolution plugin for [`eslint-plugin-import`](https://www.npmjs.com/package/eslint-plugin-import).\n\n> :boom: Only \"synchronous\" Webpack configs are supported at the moment.\n> If your config returns a `Promise`, this will cause problems.\n> Consider splitting your asynchronous configuration to a separate config.\n\nPublished separately to allow pegging to a specific version in case of breaking\nchanges.\n\nTo use with `eslint-plugin-import`, run:\n\n```sh\nnpm i eslint-import-resolver-webpack -g\n```\n\nor if you manage ESLint as a dev dependency:\n\n```sh\n# inside your project's working tree\nnpm install eslint-import-resolver-webpack --save-dev\n```\n\nWill look for `webpack.config.js` as a sibling of the first ancestral `package.json`,\nor a `config` parameter may be provided with another filename/path either relative to the\n`package.json`, or a complete, absolute path.\n\nIf multiple webpack configurations are found the first configuration containing a resolve section will be used. Optionally, the `config-index` (zero-based) setting can be used to select a specific configuration.\n\n```yaml\n---\nsettings:\n  import/resolver: webpack  # take all defaults\n```\n\nor with explicit config file name:\n\n```yaml\n---\nsettings:\n  import/resolver:\n    webpack:\n      config: 'webpack.dev.config.js'\n```\n\nor with explicit config file index:\n\n```yaml\n---\nsettings:\n  import/resolver:\n    webpack:\n      config: 'webpack.multiple.config.js'\n      config-index: 1   # take the config at index 1\n```\n\nor with explicit config file path relative to your projects's working directory:\n\n```yaml\n---\nsettings:\n  import/resolver:\n    webpack:\n      config: './configs/webpack.dev.config.js'\n```\n\nor with explicit config object:\n\n```yaml\n---\nsettings:\n  import/resolver:\n    webpack:\n      config:\n        resolve:\n          extensions:\n            - .js\n            - .jsx\n```\n\nIf your config relies on [environment variables](https://webpack.js.org/guides/environment-variables/), they can be specified using the `env` parameter.  If your config is a function, it will be invoked with the value assigned to `env`:\n\n```yaml\n---\nsettings:\n  import/resolver:\n    webpack:\n      config: 'webpack.config.js'\n      env:\n        NODE_ENV: 'local'\n        production: true\n```\n\nIf your config is set as a function, it will be evaluated at every resolution. You have an option to prevent this by caching it using the `cache` parameter:\n\n```yaml\n---\nsettings:\n  import/resolver:\n    webpack:\n      config: 'webpack.config.js'\n      cache: true\n```\n\n## Support\n\n[Get supported eslint-import-resolver-webpack with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-eslint-import-resolver-webpack?utm_source=npm-eslint-import-resolver-webpack&utm_medium=referral&utm_campaign=readme)\n","publish_time":1775140116719,"_cnpm_publish_time":1775140116719,"dist-tags":{"latest":"0.13.11","next":"0.3.1"}}