Skip to content

☂️ eslint-plugin-promise #4655

@Boshen

Description

@Boshen

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 the tracking issue for eslint-plugin-promise.

There are 17(+ 0 deprecated) rules.

  • 0/12 recommended rules are remaining as TODO
    • 2 of which have pending fixes
    • All done! 🎉
  • 0/5 not recommended rules are remaining as TODO
    • 1 of which have pending fixes
    • All done! 🎉

To get started, run the following command:

just new-promise-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

✅: 11, 🚫: 1, ⏳: 2 / total: 12
Status Name
promise/always-return
promise/avoid-new
promise/catch-or-return
promise/no-callback-in-promise
🚫 promise/no-native
✅⏳ promise/no-nesting
promise/no-new-statics
promise/no-promise-in-callback
promise/no-return-in-finally
✅⏳ promise/no-return-wrap
promise/param-names
promise/valid-params

✅ = Implemented, 🚫 = No need to implement, ⏳ = Fix pending

Not recommended rules

✅: 5, 🚫: 0, ⏳: 1 / total: 5
Status Name
promise/no-multiple-resolved
promise/prefer-await-to-callbacks
promise/prefer-await-to-then
✅⏳ promise/prefer-catch
promise/spec-only

✅ = Implemented, 🚫 = No need to implement, ⏳ = Fix pending

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linterArea - LinterC-enhancementCategory - New feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions