no-import-module-exports
UnreleasedConfiguration
rslint.config.ts
Disallow static import declarations in files that also use CommonJS exports. Mixing the two module systems can produce behavior that differs between Node.js, bundlers, and transpilers.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
The package entry point selected by package.json is exempt. This supports
packages whose entry point imports internal ES modules and then exposes a
CommonJS export. The rule does not provide automatic fixes or suggestions.
Options
exceptions
exceptions is an array of minimatch glob patterns matched against the file's
absolute path. A matching file is not checked: