Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-import-resolver-webpack

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-import-resolver-webpack

Resolve paths to dependencies, given a webpack.config.js. Plugin for eslint-plugin-import.

  • 0.2.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
864K
decreased by-17.46%
Maintainers
1
Weekly downloads
 
Created

What is eslint-import-resolver-webpack?

The eslint-import-resolver-webpack package is an ESLint plugin that allows you to use Webpack's module resolution in your ESLint configuration. This is particularly useful for projects that use Webpack aliases or custom module resolution paths, ensuring that ESLint can correctly resolve and lint your imports.

What are eslint-import-resolver-webpack's main functionalities?

Webpack Configuration Integration

This feature allows you to specify a Webpack configuration file in your ESLint settings. ESLint will use this configuration to resolve modules, ensuring that your import statements are correctly validated.

{"settings":{"import/resolver":{"webpack":{"config":"webpack.config.js"}}}}

Custom Webpack Configuration

You can also provide a custom Webpack configuration directly within the ESLint settings. This is useful if you have a simple configuration or want to override specific settings for ESLint.

{"settings":{"import/resolver":{"webpack":{"config":{"resolve":{"alias":{"@components":"./src/components"}}}}}}}

Multiple Webpack Configurations

This feature allows you to specify multiple Webpack configuration files. ESLint will try to resolve modules using each configuration in the order they are provided.

{"settings":{"import/resolver":{"webpack":{"config":["webpack.config.dev.js","webpack.config.prod.js"]}}}}

Other packages similar to eslint-import-resolver-webpack

Keywords

FAQs

Package last updated on 26 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc