web-infra-dev / web-infra-dev/rslint
[Tracking]: eslint-plugin-n rules
- Dominant language
- Go
- Stars
- 459
- Forks
- 33
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 376
Description
This is a tracking issue for porting the existing rules from [`eslint-plugin-n`](https://github.com/eslint-community/eslint-plugin-n?tab=readme-ov-file#-rules).
There are **41** rules (+ 2 deprecated).
| Category | ✅ Done | 🚫 Won't | Total |
| :--- | :---: | :---: | :---: |
| Recommended | 8 | 1 | 15 |
| Not recommended | 15 | 0 | 24 |
| Deprecated | 0 | 2 | 2 |
| **Total** | **23** | **3** | **41** |
> ✅ = Implemented | 🚫 = Not intending to implement
---
## Recommended rules
✅ 8 | 🚫 1 / Total: 15
| Status | Name |
| :----: | :--- |
| ✅ | [n/hashbang](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/hashbang.md) |
| ✅ | [n/no-deprecated-api](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-deprecated-api.md) |
| ✅ | [n/no-exports-assign](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-exports-assign.md) |
| ✅ | [n/no-extraneous-import](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-extraneous-import.md) |
| ✅ | [n/no-extraneous-require](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-extraneous-require.md) |
| ✅ | [n/no-missing-import](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-missing-import.md) |
| | [n/no-missing-require](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-missing-require.md) |
| ✅ | [n/no-process-exit](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-process-exit.md) |
| ✅ | [n/no-unpublished-bin](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unpublished-bin.md) |
| | [n/no-unpublished-import](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unpublished-import.md) |
| | [n/no-unpublished-require](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unpublished-require.md) |
| | [n/no-unsupported-features/es-builtins](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unsupported-features/es-builtins.md) |
| | [n/no-unsupported-features/es-syntax](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unsupported-features/es-syntax.md) |
| | [n/no-unsupported-features/node-builtins](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unsupported-features/node-builtins.md) |
| 🚫 | [n/process-exit-as-throw](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/process-exit-as-throw.md) |
---
## Not recommended rules
✅ 15 | 🚫 0 / Total: 24
| Status | Name |
| :----: | :--- |
| ✅ | [n/callback-return](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/callback-return.md) |
| ✅ | [n/exports-style](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/exports-style.md) |
| ✅ | [n/file-extension-in-import](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/file-extension-in-import.md) |
| ✅ | [n/global-require](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/global-require.md) |
| ✅ | [n/handle-callback-err](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/handle-callback-err.md) |
| ✅ | [n/no-callback-literal](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-callback-literal.md) |
| ✅ | [n/no-mixed-requires](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-mixed-requires.md) |
| ✅ | [n/no-new-require](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-new-require.md) |
| ✅ | [n/no-path-concat](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-path-concat.md) |
| ✅ | [n/no-process-env](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-process-env.md) |
| ✅ | [n/no-restricted-import](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-restricted-import.md) |
| ✅ | [n/no-restricted-require](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-restricted-require.md) |
| ✅ | [n/no-sync](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-sync.md) |
| ✅ | [n/no-top-level-await](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-top-level-await.md) |
| | [n/prefer-global/buffer](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/buffer.md) |
| | [n/prefer-global/console](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/console.md) |
| | [n/prefer-global/process](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/process.md) |
| | [n/prefer-global/text-decoder](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/text-decoder.md) |
| | [n/prefer-global/text-encoder](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/text-encoder.md) |
| | [n/prefer-global/url](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/url.md) |
| | [n/prefer-global/url-search-params](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-global/url-search-params.md) |
| ✅ | [n/prefer-node-protocol](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-node-protocol.md) |
| | [n/prefer-promises/dns](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-promises/dns.md) |
| | [n/prefer-promises/fs](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/prefer-promises/fs.md) |
---
## Deprecated rules
✅ 0 | 🚫 2 / Total: 2
| Status | Name | Rationale |
| :----: | :--- | :-------- |
| 🚫 | [n/no-hide-core-modules](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-hide-core-modules.md) | Deprecated |
| 🚫 | [n/shebang](https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/shebang.md) | Deprecated |
Contributor guide
Assessment
This issue has not been assessed yet.