sindresorhus/eslint-plugin-unicorn
Rule proposal: `no-exports-in-scripts`
Chiusa
#2513 aperta il 18 dic 2024
help wantednew rule
Metriche repository
- Star
- (5022 stelle)
- Metriche merge PR
- (Merge medio 4h 30m) (26 PR mergiate in 30 g)
Descrizione
Description
Currently, a js file starts with hashbang #! is script file. In script file, using exports is useless and confused.
Fail
#!/usr/bin/env node
export const foo = {};
Pass
export {}
#!/usr/bin/env node
console.log('foo');
Proposed rule name
no-exports-in-scripts
Additional Info
No response