Skip to content

Commit 4ad1ef8

Browse files
committed
build: disable node/shebang for bin/*.js
Executable scripts need a shebang. Disable this rule to allow it. Signed-off-by: Kevin Locke <[email protected]>
1 parent b336c02 commit 4ad1ef8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.eslintrc.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,17 @@
1212
"test/**"
1313
]
1414
}]
15-
}
15+
},
16+
17+
"overrides": [
18+
{
19+
// Executable scripts should have a shebang
20+
"files": [
21+
"bin/*.js"
22+
],
23+
"rules": {
24+
"node/shebang": "off"
25+
}
26+
}
27+
]
1628
}

0 commit comments

Comments
 (0)