prefer-path-resolve
💼 This rule is enabled in the ✅ recommended config.
Disallows the path.join method with a parent directory segment.
🔧 This rule is automatically fixable by the --fix CLI option.
Rule Details​
// Bad
path.join(projectRoot, "..");
// Good
path.resolve(projectRoot, "..");
Options​
This rule is not configurable.