{"name":"eslint-import-resolver-webpack","version":"0.13.10","keywords":["eslint-plugin-import","eslint","jsnext","modules","webpack"],"author":{"url":"me@benmosher.com","name":"Ben Mosher"},"license":"MIT","_id":"eslint-import-resolver-webpack@0.13.10","maintainers":[{"name":"jfmengels","email":"jfm.engels@gmail.com"},{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"benmosher","email":"me@benmosher.com"}],"homepage":"https://github.com/import-js/eslint-plugin-import/tree/HEAD/resolvers/webpack","bugs":{"url":"https://github.com/import-js/eslint-plugin-import/issues"},"dist":{"shasum":"d5b69ca548190bd6fd517e5732d2b16cf884227a","tarball":"http://registry-npm.ywwl.com/eslint-import-resolver-webpack/download/eslint-import-resolver-webpack-0.13.10.tgz","fileCount":5,"integrity":"sha512-ciVTEg7sA56wRMR772PyjcBRmyBMLS46xgzQZqt6cWBEKc7cK65ZSSLCTLVRu2gGtKyXUb5stwf4xxLBfERLFA==","signatures":[{"sig":"MEUCIHIu39jR5AGxvzZMejbICdp820gvRxFYlE1ng+LuNfwrAiEA6t1iFyTJQC3lgHhFCUeBPfSx45igbxiLvIYO71z+BHs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21142,"size":6894,"noattachment":false,"key":"/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.13.10.tgz"},"main":"index.js","engines":{"node":">= 6"},"gitHead":"e159652f541ebcd49eafdc9202dc77ee043139da","scripts":{"test":"npm run tests-only","tests-only":"nyc mocha -t 5s","prepublishOnly":"cp ../../{LICENSE,.npmrc} ./"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"repository":{"url":"git+https://github.com/import-js/eslint-plugin-import.git","type":"git","directory":"resolvers/webpack"},"_npmVersion":"10.9.0","description":"Resolve paths to dependencies, given a webpack.config.js. Plugin for eslint-plugin-import.","directories":{},"_nodeVersion":"23.2.0","dependencies":{"debug":"^3.2.7","hasown":"^2.0.2","lodash":"^4.17.21","semver":"^5.7.2","resolve":"^2.0.0-next.5","is-regex":"^1.2.0","find-root":"^1.1.0","interpret":"^1.4.0","is-core-module":"^2.15.1","enhanced-resolve":"^0.9.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^11.9.0","chai":"^3.5.0","mocha":"^3.5.3","webpack":"git+https://gist.github.com/9cdb687f3806f8e6cb8a365d0b7840eb.git","babel-register":"^6.26.0","babel-plugin-istanbul":"^4.1.6"},"peerDependencies":{"webpack":">=1.11.0","eslint-plugin-import":">=1.4.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-import-resolver-webpack_0.13.10_1733896591153_0.04211377079703671","host":"s3://npm-registry-packages-npm-production"},"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":1733896591329,"_cnpm_publish_time":1733896591329,"dist-tags":{"latest":"0.13.11","next":"0.3.1"}}