Skip to content

refactor: list optional properties last in inline object types - #3302

Open
Lightning00Blade wants to merge 1 commit into
refactor/private-class-membersfrom
refactor/optional-properties-last
Open

Lightning00Blade wants to merge 1 commit into
refactor/private-class-membersfrom
refactor/optional-properties-last

Conversation

@Lightning00Blade

Copy link
Copy Markdown
Collaborator

Stacked on #3301.

Reorders 15 inline object types in 7 source files so that optional properties come after required ones. The change only affects types.

This matches the DevTools enforce-optional-properties-last ESLint rule. Its autofix is not used because it moves properties without their JSDoc comments (for example, the readOnlyHint comment in ToolDefinition.ts would end up on title).

User-visible changes

None.

Testing

  • npm run format
  • npm run test

Reorder 15 inline object types in 7 source files so that optional
properties come after required ones. The change only affects types.

This matches the DevTools `enforce-optional-properties-last` ESLint
rule. Its autofix is not used because it moves properties without their
JSDoc comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant