Import NextRules
no-absolute-path
Forbid import of modules using absolute paths
š¼ This rule is enabled in the following configs: recommended, typescript.
š” This rule is automatically fixable by the --fix CLI option.
Forbid import of modules using absolute paths
Rule Details
This rule aims to prevent issues related to absolute-path.
Options
[
{
"type": "object",
"properties": {
"esmodule": {
"type": "boolean",
"default": true
},
"commonjs": {
"type": "boolean",
"default": true
},
"amd": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
]Implementation
OWASP Foundation
- Category: A00:2021 - General Security