Skip to content

Repo: Add lint rule to prefer create's second parameter over context.options #6072

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Suggestion

context.options is the raw user-provided options before defaultOptions is applied, while create's second parameter is after defaultOptions. Example bug & fix PR:

Unless I'm wrong about the difference, let's add a lint rule to prevent this internally?

Metadata

Metadata

Labels

accepting prsGo ahead, send a pull request that resolves this issuerepo maintenancethings to do with maintenance of the repo, and not with code/docs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions