Import NextRules
no-named-export
Prevents named exports
š¼ This rule is enabled in the following configs: recommended, typescript.
š” This rule is automatically fixable by the --fix CLI option.
Prevents named exports
Rule Details
This rule aims to prevent issues related to named-export.
Options
[
{
"type": "object",
"properties": {
"allowInFiles": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allow named exports in specific files."
},
"allowNames": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allow specific named exports."
},
"allowPatterns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Allow named exports for specific patterns."
},
"suggestDefault": {
"type": "boolean",
"default": true,
"description": "Suggest default export alternative."
}
},
"additionalProperties": false
}
]Implementation
OWASP Foundation
- Category: A00:2021 - General Security