Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on require of module-resolver aliased local module #2

Open
Yzrsah opened this issue Feb 27, 2019 · 3 comments
Open

Fails on require of module-resolver aliased local module #2

Yzrsah opened this issue Feb 27, 2019 · 3 comments

Comments

@Yzrsah
Copy link

Yzrsah commented Feb 27, 2019

in .babelrc:

	[ "module-resolver", {
		"root": [ "./" ],
		"alias": {
			"appConfig": "./app.config",
			"components": "./components",
		}
	}],

This resolves to the file 'app.config.js'

Later we use it:

const { appConfig } = require('appConfig');

This produces a no-implicit error:

"appConfig" is not listed as a dependency in package.json
silverlyra added a commit to fablestudios/eslint-plugin-implicit-dependencies that referenced this issue Jan 10, 2022
@adamsoderstrom
Copy link

Do we have any updates regarding @silverlyra's solution proposal? Would be great if this could get resolved.

@petewest-vocovo
Copy link

Support for this would be brilliant!

@silverlyra
Copy link

silverlyra commented Oct 22, 2023

fwiw, a package with the ignore option is published on npm as a hypothetical v1.2b1 (source)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants