Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 458 Bytes

spec-only.md

File metadata and controls

24 lines (15 loc) · 458 Bytes

Disallow use of non-standard Promise static methods (promise/spec-only)

It may become difficult to migrate code depending on non-standard Promise extensions. This rule reports any such method usage.

Valid

const x = Promise.resolve('good')

Invalid

const x = Promise.done('bad')

Options

allowedMethods

An array of allowed non-standard methods. Defaults to an empty array.