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