oxc icon indicating copy to clipboard operation
oxc copied to clipboard

☂️ eslint-plugin-n

Open Boshen opened this issue 1 year ago • 0 comments

[!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.

  • 14/14 recommended rules are remaining as TODO
  • 24/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

✨: 0, 🚫: 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

✨: 0, 🚫: 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 avatar Jun 28 '23 10:06 Boshen