We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no-exports-in-scripts
Currently, a js file starts with hashbang #! is script file. In script file, using exports is useless and confused.
#!
export
#!/usr/bin/env node export const foo = {};
export {}
#!/usr/bin/env node console.log('foo');
No response
The text was updated successfully, but these errors were encountered:
Somewhat related:
no-top-level-side-effects
This rule:
That rule:
However this rule as defined is much easier to implement:
Sorry, something went wrong.
No branches or pull requests
Description
Currently, a js file starts with hashbang
#!
is script file. In script file, usingexport
s is useless and confused.Fail
Pass
Proposed rule name
no-exports-in-scripts
Additional Info
No response
The text was updated successfully, but these errors were encountered: