You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: