Registry /
devops / eslint-plugin-import-path-lint-plugin
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
plugin (default)
✓ const importPathLintPlugin = require('eslint-plugin-import-path-lint-plugin');
✗ import importPathLintPlugin from 'eslint-plugin-import-path-lint-plugin'; // CJS-only, no ESM export
Plugin is CommonJS only; no ESM or TypeScript types provided.
configs
✓ // Add to .eslintrc plugins array: 'import-path-lint-plugin'
✗ 'plugins': ['eslint-plugin-import-path-lint-plugin'] // Prefix 'eslint-plugin-' is optional, but including it is a common confusion
ESLint automatically strips 'eslint-plugin-' prefix; both forms work but the unprefixed version is conventional.
rules
✓ // In .eslintrc rules object: 'import-path-lint-plugin/rule-name': 2
✗ 'import-path-lint-plugin/rule-name': 'error' // string severity works too, but numeric is common
No actual rules documented in the plugin as of v0.1.4. This is a common footgun — developers expect non-existent rules.
Demonstrates installation and configuration of the plugin in an ESLint project, but notes that no rules are implemented yet.
// Install: npm install eslint eslint-plugin-import-path-lint-plugin --save-dev
// .eslintrc.json
{
"plugins": ["import-path-lint-plugin"],
"rules": {
"import-path-lint-plugin/rule-name": "error"
}
}
// Run: npx eslint .
// Note: The plugin currently has no implemented rules, so this will not produce any linting errors.
Errors
Common errors & fixes
ESLint: Failed to load plugin 'import-path-lint-plugin': Cannot find module 'eslint-plugin-import-path-lint-plugin'
Plugin not installed or installed globally instead of locally.
fixRun 'npm install eslint-plugin-import-path-lint-plugin --save-dev' in your project directory.
ESLint: Configuration for rule "import-path-lint-plugin/rule-name" is invalid: Rule "import-path-lint-plugin/rule-name" was not found.
Attempting to configure a rule that does not exist in the plugin.
fixRemove the rule from your ESLint config, or verify the rule name against the plugin's documentation.
Audit
Dependencies
eslintrequiredPeer dependency — the plugin is designed to extend ESLint's functionality