-
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.
Use eslint-plugin-n instead of eslint-plugin-node
Since eslint-plugin-node has been dormant for quite a while: mysticatea/eslint-plugin-node#294 mysticatea/eslint-plugin-node#300 eslint-plugin-n is an actively maintained fork which is used by xo: xojs/xo#660 switch to that fork. Signed-off-by: Kevin Locke <[email protected]>
- Loading branch information
Showing
3 changed files
with
9 additions
and
9 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
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,16 +1,16 @@ | ||
// ESLint common configuration rules for Node plugin | ||
// https://github.com/mysticatea/eslint-plugin-node#-rules | ||
// ESLint common configuration rules for N plugin | ||
// https://github.com/weiran-zsd/eslint-plugin-node#-rules | ||
|
||
"use strict"; | ||
|
||
module.exports = { | ||
"extends": [ | ||
"plugin:node/recommended" | ||
"plugin:n/recommended" | ||
], | ||
|
||
"rules": { | ||
// require file extensions in import declarations | ||
// https://nodejs.org/api/esm.html#esm_mandatory_file_extensions | ||
"node/file-extension-in-import": "error" | ||
"n/file-extension-in-import": "error" | ||
} | ||
}; |