forked from mysticatea/eslint-plugin-node
-
-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
Description
Rule details
Prefer process.cwd()
over path.resolve()
.
The results are the same, but process.cwd()
is faster and has a clear intention.
What type of rule is this?
Suggests an alternate way of doing something
Example code
// ❌
path.resolve()
// ✅
process.cwd()
Participation
- I am willing to submit a pull request to implement this rule.
Additional comments
This proposal was originally suggested in eslint-plugin-unicorn
, but feels more suitable in this repo.
fregante, scagood, BridgeAR and privatenumber