prettier / prettier-synchronized

Synchronous version of Prettier
MIT License
23 stars 7 forks source link

Declare `createSynchronizedPrettier` as only named export #12

Open colinrotherham opened 1 year ago

colinrotherham commented 1 year ago

As discussed in https://github.com/alphagov/govuk-frontend/pull/3971#discussion_r1265398678 @prettier/sync doesn't support named exports:

import { format } from '@prettier/sync'

This PR updates the type declarations to show that

I've also updated the tsconfig.json file so local test.js imports are checked too

Named exports not allowed