eslint-plugin-promise icon indicating copy to clipboard operation
eslint-plugin-promise copied to clipboard

feat(rule): add `prefer-promise-static-methods` rule

Open NotWoods opened this issue 1 year ago • 0 comments

What is the purpose of this pull request?

  • [ ] Documentation update
  • [ ] Bug fix
  • [x] New rule
  • [ ] Changes an existing rule
  • [ ] Add autofixing to a rule
  • [ ] Other, please explain:

What changes did you make? (Give an overview) Closes #448

Rule to recommend using Promise static resolve/reject methods over new Promise, which saves a microtick and is more readable. See issue for more details on the rule.

NotWoods avatar May 29 '24 16:05 NotWoods