Skip to content

Commit

Permalink
build: disable node/shebang lint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Mar 8, 2023
1 parent 4e56b60 commit 330e7c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
6 changes: 0 additions & 6 deletions etc/eslint/overrides/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,6 @@ var overrides = [
'stdlib/vars-order': 'off'
}
},
{
'files': [ '**/scripts/*.js' ],
'rules': {
'node/shebang': 'off'
}
},
{
'files': [ '**/test/*.js' ],
'rules': {
Expand Down
16 changes: 1 addition & 15 deletions etc/eslint/rules/nodejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,21 +390,7 @@ rules[ 'node/process-exit-as-throw' ] = 'error';
* @type {Array}
* @see [node/shebang]{@link https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/shebang.md}
*/
rules[ 'node/shebang' ] = [ 'error', {
'convertPath': [
{
'include': [
'**/bin/**'
],
'exclude': [
'**/scripts/**'
],
'replace': [
'^bin/(.+)$', 'bin/$1'
]
}
]
}];
rules[ 'node/shebang' ] = [ 'off' ];


// EXPORTS //
Expand Down

0 comments on commit 330e7c2

Please sign in to comment.