-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace eslint-plugin-node by eslint-plugin-n
- Loading branch information
Showing
3 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
plugins: ['eslint-plugin-node'], | ||
plugins: ['eslint-plugin-n'], | ||
env: { | ||
node: true, | ||
}, | ||
rules: { | ||
// disallow deprecated node APIs | ||
'node/no-deprecated-api': 'error', | ||
'n/no-deprecated-api': 'error', | ||
// disallow the assignment to `exports` | ||
'node/no-exports-assign': 'error', | ||
'n/no-exports-assign': 'error', | ||
// disallow `bin` files that npm ignores | ||
'node/no-unpublished-bin': 'error', | ||
'n/no-unpublished-bin': 'error', | ||
// disallow unsupported Node.js built-in APIs on the specified version | ||
'node/no-unsupported-features/node-builtins': 'error', | ||
'n/no-unsupported-features/node-builtins': 'error', | ||
// make `process.exit()` expressions the same code path as `throw` | ||
'node/process-exit-as-throw': 'error', | ||
'n/process-exit-as-throw': 'error', | ||
// enforce shebang on the entry bin file | ||
'node/shebang': 'error', | ||
'n/shebang': 'error', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters