-
-
Notifications
You must be signed in to change notification settings - Fork 400
Support import.meta.dirname
and import.meta.filename
in prefer-module
rule
#2255
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
Comments
Are you considering adding this as an option? Given that many projects are still running on the previous LTS version and libraries support older versions, this change would break their code |
I think we can just wait until we can target Node.js 20 (in April). |
Perfect. I could work on this :). Also, I would consider replacing this pattern: const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename); |
This not implemented
|
__dirname
and__filename
with them.const __dirname = path.dirname(fileURLToPath(import.meta.url));
with them.The text was updated successfully, but these errors were encountered: