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
n/no-path-concat helps out with how one should handle __dirname and __filename, but in ESM modules those does not exist (as mentioned in eg. #164) but instead there are three others with similar, yet different, concerns:
import.meta.dirname
import.meta.filename
import.meta.url
What type of rule is this?
Warns about a potential problem
Example code
constabc=import.meta.dirname+'/foo/bar.js';
Participation
I am willing to submit a pull request to implement this rule.
Additional comments
Either n/no-path-concat is extended with those three or a new rule is introduced. I think n/no-path-concat could probably be extended? (Hence why I opened #294, because I would have suggested this as a rule change if I could)
The text was updated successfully, but these errors were encountered:
Rule details
n/no-path-concat
helps out with how one should handle__dirname
and__filename
, but in ESM modules those does not exist (as mentioned in eg. #164) but instead there are three others with similar, yet different, concerns:import.meta.dirname
import.meta.filename
import.meta.url
What type of rule is this?
Warns about a potential problem
Example code
Participation
Additional comments
Either
n/no-path-concat
is extended with those three or a new rule is introduced. I thinkn/no-path-concat
could probably be extended? (Hence why I opened #294, because I would have suggested this as a rule change if I could)The text was updated successfully, but these errors were encountered: