Import NextRules
no-import-module-exports
Forbid import statements with CommonJS module.exports
š¼ This rule is enabled in the following configs: recommended, typescript.
š” This rule is automatically fixable by the --fix CLI option.
Forbid import statements with CommonJS module.exports
Rule Details
This rule aims to prevent issues related to import-module-exports.
Options
[
{
"type": "object",
"properties": {
"exceptions": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
]Implementation
OWASP Foundation
- Category: A00:2021 - General Security