no-exports-in-scripts
UnreleasedConfiguration
rslint.config.ts
Rule Details
Scripts (files whose first line starts with #!) are meant to be executed
directly, not imported as modules. Exports in a script mix module and script
boundaries and can mislead readers about how the file is intended to run.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
A file without a shebang is a module, and modules are free to use exports: