eslint-plugin-promise
eslint-plugin-promise copied to clipboard
feat(rule): add `prefer-promise-static-methods` rule
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.