Skip to content

Add fixer for param-names #90

@macklinu

Description

@macklinu

The param-names rule requires using resolve, reject as parameter names for new Promise((resolve, reject) => {}). It would be cool if this rule implemented a fixer that would automatically correct the parameter names:

new Promise((yea, naw) => {})

// --fix

new Promise((resolve, reject) => {})

It should also support a function with one parameter:

new Promise((yea) => {})

// --fix

new Promise((resolve) => {})

Fixer documentation

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions