Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

☂️ eslint-plugin-n #493

Open
Tracked by #20279
Boshen opened this issue Jun 28, 2023 · 0 comments
Open
Tracked by #20279

☂️ eslint-plugin-n #493

Boshen opened this issue Jun 28, 2023 · 0 comments
Labels
A-linter Area - Linter E-Help Wanted Experience level - For the experienced collaborators

Comments

@Boshen
Copy link
Member

Boshen commented Jun 28, 2023

Warning

This comment is maintained by CI. Do not edit this comment directly.
To update comment template, see https://github.com/oxc-project/oxc/tree/main/tasks/lint_rules

This is tracking issue for eslint-plugin-n.

There are 38(+ 2 deprecated) rules.

  • 13/14 recommended rules are remaining as TODO
  • 23/24 not recommended rules are remaining as TODO

To get started, run the following command:

just new-n-rule <RULE_NAME>

Then register the rule in crates/oxc_linter/src/rules.rs and also declare_all_lint_rules at the bottom.

Recommended rules

✨: 1, 🚫: 0 / total: 14
Status Name Docs
n/no-deprecated-api https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-deprecated-api.md
n/no-exports-assign https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-exports-assign.md
n/no-extraneous-import https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-extraneous-import.md
n/no-extraneous-require https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-extraneous-require.md
n/no-missing-import https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-missing-import.md
n/no-missing-require https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-missing-require.md
n/no-unpublished-bin https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
n/no-unpublished-import https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-import.md
n/no-unpublished-require https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-require.md
n/no-unsupported-features/es-builtins https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/es-builtins.md
n/no-unsupported-features/es-syntax https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/es-syntax.md
n/no-unsupported-features/node-builtins https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/node-builtins.md
n/process-exit-as-throw https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/process-exit-as-throw.md
n/hashbang https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/hashbang.md

✨ = Implemented, 🚫 = No need to implement

Not recommended rules

✨: 1, 🚫: 0 / total: 24
Status Name Docs
n/callback-return https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/callback-return.md
n/exports-style https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/exports-style.md
n/file-extension-in-import https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/file-extension-in-import.md
n/global-require https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/global-require.md
n/handle-callback-err https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/handle-callback-err.md
n/no-callback-literal https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-callback-literal.md
n/no-mixed-requires https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-mixed-requires.md
n/no-new-require https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-new-require.md
n/no-path-concat https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-path-concat.md
n/no-process-env https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-process-env.md
n/no-process-exit https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-process-exit.md
n/no-restricted-import https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-restricted-import.md
n/no-restricted-require https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-restricted-require.md
n/no-sync https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
n/prefer-global/buffer https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/buffer.md
n/prefer-global/console https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md
n/prefer-global/process https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md
n/prefer-global/text-decoder https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-decoder.md
n/prefer-global/text-encoder https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-encoder.md
n/prefer-global/url-search-params https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url-search-params.md
n/prefer-global/url https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md
n/prefer-node-protocol https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-node-protocol.md
n/prefer-promises/dns https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/dns.md
n/prefer-promises/fs https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/fs.md

✨ = Implemented, 🚫 = No need to implement

Deprecated rules

✨: 0, 🚫: 0 / total: 2
Status Name Docs
n/no-hide-core-modules https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-hide-core-modules.md
n/shebang https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/hashbang.md

✨ = Implemented, 🚫 = No need to implement

@Boshen Boshen added E-Help Wanted Experience level - For the experienced collaborators A-linter Area - Linter labels Jul 5, 2023
@Boshen Boshen changed the title ☂️ linter: eslint-plugin-n recommended rules ☂️ linter: eslint-plugin-n Jan 26, 2024
@Boshen Boshen changed the title ☂️ linter: eslint-plugin-n ☂️ eslint-plugin-n Jan 26, 2024
Boshen pushed a commit that referenced this issue Feb 2, 2024
IWANABETHATGUY pushed a commit to IWANABETHATGUY/oxc that referenced this issue May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - Linter E-Help Wanted Experience level - For the experienced collaborators
Projects
None yet
Development

No branches or pull requests

1 participant