From 59b319feaa12745a434afdef5cadfcabd01206f9 Mon Sep 17 00:00:00 2001 From: Chance Strickland Date: Tue, 22 Feb 2022 13:37:17 -0800 Subject: [PATCH] chore: Format `main` with Prettier defaults (#8678) * chore: use prettier defaults * chore: format with prettier * chore: update prettier --- FAQ.md | 2 +- docs/api.md | 34 +-- docs/faq.md | 4 +- docs/getting-started/concepts.md | 56 ++--- docs/getting-started/installation.md | 2 +- docs/getting-started/overview.md | 8 +- docs/getting-started/tutorial.md | 50 ++-- docs/prettier.config.js | 2 +- docs/upgrading/reach.md | 12 +- docs/upgrading/v5.md | 26 +-- examples/auth/src/App.tsx | 2 +- examples/auth/src/auth.ts | 2 +- examples/auth/vite.config.ts | 12 +- examples/basic/vite.config.ts | 12 +- examples/custom-filter-link/src/App.tsx | 14 +- examples/custom-filter-link/src/snkrs.ts | 22 +- examples/custom-filter-link/vite.config.ts | 12 +- examples/custom-link/src/App.tsx | 2 +- examples/custom-link/vite.config.ts | 12 +- examples/custom-query-parsing/src/App.tsx | 2 +- examples/custom-query-parsing/vite.config.ts | 12 +- examples/lazy-loading/vite.config.ts | 12 +- examples/modal/src/App.tsx | 12 +- examples/modal/src/images.ts | 12 +- examples/modal/vite.config.ts | 12 +- examples/multi-app/inbox/App.jsx | 8 +- examples/multi-app/inbox/messages.js | 22 +- examples/multi-app/server.js | 4 +- examples/multi-app/vite.config.js | 18 +- examples/route-objects/src/App.tsx | 10 +- examples/route-objects/vite.config.ts | 12 +- examples/search-params/src/App.tsx | 4 +- examples/search-params/vite.config.ts | 12 +- examples/ssr/server.js | 6 +- examples/ssr/vite.config.js | 12 +- package.json | 2 +- .../__tests__/link-click-test.tsx | 2 +- .../__tests__/link-push-test.tsx | 10 +- .../__tests__/navigate-encode-params-test.tsx | 2 +- .../__tests__/static-location-test.tsx | 4 +- .../__tests__/useLinkClickHandler-test.tsx | 10 +- packages/react-router-dom/index.tsx | 22 +- packages/react-router-dom/jest-transformer.js | 4 +- packages/react-router-dom/jest.config.js | 6 +- packages/react-router-dom/server.tsx | 6 +- .../__tests__/deep-linking-test.tsx | 4 +- .../__tests__/link-press-test.tsx | 2 +- .../__tests__/search-params-test.tsx | 4 +- .../react-router-native/__tests__/setup.ts | 2 +- .../__tests__/useLinkPressHandler-test.tsx | 2 +- .../react-router-native/__tests__/utils.ts | 2 +- packages/react-router-native/index.tsx | 18 +- packages/react-router-native/jest.config.js | 8 +- .../__tests__/Routes-location-test.tsx | 2 +- .../__tests__/absolute-path-matching-test.tsx | 20 +- .../__tests__/gh-issue-8165-test.tsx | 2 +- .../__tests__/index-routes-test.tsx | 8 +- .../react-router/__tests__/matchPath-test.tsx | 74 +++--- .../__tests__/matchRoutes-test.tsx | 30 +-- .../__tests__/path-matching-test.tsx | 80 +++---- .../__tests__/resolvePath-test.tsx | 16 +- .../__tests__/route-matching-test.tsx | 18 +- .../__tests__/useNavigate-test.tsx | 2 +- .../react-router/__tests__/useOutlet-test.tsx | 6 +- .../__tests__/useResolvedPath-test.tsx | 2 +- .../react-router/__tests__/useRoutes-test.tsx | 14 +- packages/react-router/index.tsx | 54 ++--- packages/react-router/jest-transformer.js | 4 +- packages/react-router/jest.config.js | 6 +- prettier.config.js | 5 +- rollup.config.js | 220 +++++++++--------- scripts/publish.js | 2 +- scripts/version.js | 12 +- tutorial/src/data.js | 16 +- tutorial/vite.config.js | 12 +- yarn.lock | 8 +- 76 files changed, 589 insertions(+), 590 deletions(-) diff --git a/FAQ.md b/FAQ.md index 7c598e3cb5..3c6a46c616 100644 --- a/FAQ.md +++ b/FAQ.md @@ -120,7 +120,7 @@ const App = () => { return ( } + render={(props) => } /> ); }; diff --git a/docs/api.md b/docs/api.md index 833c212cfa..79b39a0064 100644 --- a/docs/api.md +++ b/docs/api.md @@ -214,7 +214,7 @@ import { create } from "react-test-renderer"; import { MemoryRouter, Routes, - Route + Route, } from "react-router-dom"; describe("My app", () => { @@ -313,7 +313,7 @@ function UsersIndexPage({ users }) {

Users