Skip to content

Commit

Permalink
fix(deps): Use eslint-plugin-n instead of eslint-plugin-node (#743)
Browse files Browse the repository at this point in the history
* feat(deps): uninstall eslint-plugin-node and install eslint-plugin-n

* feat: use eslint-plugin-n rules

* fix: update README

* fix: add tailing comma

* fix: update shared settings

* fix : rule-set name in README.md

Co-authored-by: Daiki Nishikawa <nd.12021218@gmail.com>

---------

Co-authored-by: Daiki Nishikawa <nd.12021218@gmail.com>
  • Loading branch information
sajikix and nissy-dev authored Jun 5, 2024
1 parent 2a674b9 commit 29e3d4e
Show file tree
Hide file tree
Showing 7 changed files with 196 additions and 113 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports = {
- `@cybozu`
- This is included in the all following presets
- `@cybozu/eslint-config/presets/node`
- Including `eslint-plugin-node`
- Including `eslint-plugin-n`
- `@cybozu/eslint-config/presets/typescript`
- Including `@typescript-eslint/eslint-plugin`
- `@cybozu/eslint-config/presets/react`
Expand Down
2 changes: 1 addition & 1 deletion lib/node-typescript.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
rules: {
"node/no-unsupported-features/es-syntax": "off",
"n/no-unsupported-features/es-syntax": "off",
},
};
6 changes: 3 additions & 3 deletions lib/node.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
extends: ["plugin:node/recommended"],
extends: ["plugin:n/recommended"],
settings: {
node: {
// https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-missing-import.md#tryextensions
n: {
// https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/shared-settings.md#tryextensions
tryExtensions: [".js", ".json", ".node", ".ts", ".jsx", ".tsx"],
},
},
Expand Down
Loading

0 comments on commit 29e3d4e

Please sign in to comment.