Skip to content

Conversation

@shivalipatel6
Copy link
Contributor

@shivalipatel6 shivalipatel6 commented Dec 7, 2023

Set the quoteProps rule to consistent in the .prettierrc.js file Run npm run format to automatically fix all properties.

The basics

The details

Resolves

Setting 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.

Fixes #1980

Proposed Changes

Reason for Changes

Test Coverage

Documentation

Additional Information

When I ran npm run format I got this response. I wasn't sure if it was the correct response or not, so I am mentioning in the case that there is a problem that I need to fix.
prettier-config

Set the quoteProps rule to consistent in the .prettierrc.js file
Run npm run format to automatically fix all properties.
@shivalipatel6 shivalipatel6 requested a review from a team as a code owner December 7, 2023 16:00
@shivalipatel6 shivalipatel6 requested review from NeilFraser and removed request for a team December 7, 2023 16:00
…iFoundation#2099

ran npm ci and npm run format to echo changes throughout samples
@BeksOmega BeksOmega assigned BeksOmega and unassigned NeilFraser Dec 7, 2023
@BeksOmega BeksOmega requested review from BeksOmega and removed request for NeilFraser December 7, 2023 16:14
@BeksOmega
Copy link
Contributor

For the error you're seeing, can you try running npm ci and then npm run format to see if it that fixes it?

Copy link
Contributor

@BeksOmega BeksOmega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet this looks great! Thank you for the fixes =)

@BeksOmega BeksOmega merged commit 44e8fb0 into RaspberryPiFoundation:master Dec 7, 2023
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.

Update prettier config for quoted object properties

3 participants