Import NextRules
no-unresolved
Ensures imports point to resolvable modules
š¼ This rule is enabled in the following configs: recommended, typescript.
š” This rule is automatically fixable by the --fix CLI option.
Ensures imports point to resolvable modules
Rule Details
This rule aims to prevent issues related to unresolved.
Options
[
{
"type": "object",
"properties": {
"extensions": {
"type": "array",
"items": {
"type": "string"
},
"description": "File extensions to consider when resolving imports."
},
"ignore": {
"type": "array",
"items": {
"type": "string"
},
"description": "Modules/patterns to ignore during resolution."
},
"allowUnresolved": {
"type": "boolean",
"default": false,
"description": "Allow unresolved imports in certain contexts."
}
},
"additionalProperties": false
}
]Implementation
OWASP Foundation
- Category: A03:2021 - Injection