eslint-plugin-import is an ESLint plugin that validates import statements by parsing source code into an abstract syntax tree and applying configurable rules. It verifies that named imports match the actual exports of target modules and checks that import paths reference existing files on disk, catching typos and broken references before runtime.
The plugin enforces consistent import style through rules for ordering, duplicate detection, and unused import removal. It extends beyond the default Node resolver by supporting custom module systems like Webpack, TypeScript, and Meteor through a plugin-architecture resolver that delegates resolution to external plugins.
The tool processes imports through a pipeline of user-configurable rules that can be enabled, disabled, or customized, and matches named imports against module exports by analyzing export declarations. It resolves import paths by checking actual file existence on disk using configurable resolvers.