-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
package.json
lookup should be from ESLint cwd
#67
Comments
Since creating dynamic configurations are not possible, I would recommend moving type look up to a per-rule basis. That way, ESLint's cwd is available and would yield accurate results for monorepos that contain mixed types. Also, seems like the env configurations are pretty much identical to ESLint's builtin environments. I think this plugin could have a "smarter" rule that detects whether a CommonJS variable is used in a Module. |
ESLint supports setting the
cwd
.However, the
getPackageJson
function looks up usingprocess.cwd()
.The text was updated successfully, but these errors were encountered: