sindresorhus/eslint-plugin-unicorn
Rule proposal: `no-exports-in-scripts`
クローズ
#2,513 opened on 2024/12/18
help wantednew rule
Repository metrics
- Stars
- (5,022 個のスター)
- PR merge metrics
- (平均マージ 4h 30m) (30d で 26 merged PRs)
説明
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