Skip to content

Update prettier config for quoted object properties #1980

@maribethb

Description

@maribethb

Check for duplicates

  • I have searched for similar issues before opening a new one.

Component

all

Problem

In the prettier config in #1946, we set the quoteProps rule to "preserve". This was necessary in blockly core as we have some properties that must remain quoted due to the closure compiler. Since we don't use closure compiler in samples, we don't need to keep this setting. We can set the rule to consistent meaning only add quotations to properties that must be quoted, and then if any property in an object is quoted, all of them will be to remain consistent.

Request

To close this issue:

  1. Wait for chore: add formatting with prettier #1946 to be submitted
  2. Set the quoteProps rule to consistent in the .prettierrc.js file
  3. Run npm run format to automatically fix all properties.

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions