Skip to content

Commit

Permalink
meta: update Prettier version (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored Apr 9, 2024
1 parent 610bbe8 commit 021574d
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 32 deletions.
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ module.exports = {
singleQuote: true,
trailingComma: 'all',
useTabs: true,
experimentalTernaries: true,
};
7 changes: 4 additions & 3 deletions blog/2017-08-0.18.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ on the server when an upload starts, by calling fetch inside the

## Webcam: 1, 2, 3 smile!

Webcam plugin now has a new exciting feature — ⏱ `countdown`. If you set it to 3
seconds, for example, then after pressing the capture button, Uppy will count to
3 before actually taking your selfie, so you’ll have the time to fix your hair:
Webcam plugin now has a new exciting feature — ⏱ `countdown`. If you set it to
3 seconds, for example, then after pressing the capture button, Uppy will count
to 3 before actually taking your selfie, so you’ll have the time to fix your
hair:

```js
uppy.use(Webcam, { countdown: 3 });
Expand Down
2 changes: 1 addition & 1 deletion blog/2020-03-custom-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ module.exports = (api) => {
like so:

```html
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"lint-staged": "^13.0.3",
"mdast-comment-marker": "^2.1.0",
"npm-run-all": "^4.1.5",
"prettier": "2.8.1",
"prettier": "3.2.5",
"remark-cli": "^11.0.0",
"remark-directive": "^2.0.1",
"remark-frontmatter": "^4.0.0",
Expand Down
31 changes: 23 additions & 8 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@
font-style: normal;
font-weight: normal;
font-display: swap;
src: local('IBM Plex Mono'), local('IBMPlexMono'),
src:
local('IBM Plex Mono'),
local('IBMPlexMono'),
url('/fonts/IBMPlexMono-Regular.woff2') format('woff2');
}
@font-face {
font-family: 'IBM Plex Mono';
font-style: normal;
font-weight: 600;
font-display: swap;
src: local('IBM Plex Mono SemiBold'), local('IBMPlexMono-SemiBold'),
src:
local('IBM Plex Mono SemiBold'),
local('IBMPlexMono-SemiBold'),
url('/fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
}

Expand All @@ -26,31 +30,38 @@
font-style: normal;
font-weight: 500;
font-display: swap;
src: local('IBM Plex Sans Regular'), local('IBMPlexSans-Regular'),
src:
local('IBM Plex Sans Regular'),
local('IBMPlexSans-Regular'),
url('/fonts/IBMPlexSans-Regular.woff2') format('woff2');
}
@font-face {
font-family: 'IBM Plex Sans';
font-style: italic;
font-weight: 500;
font-display: swap;
src: local('IBM Plex Sans Italic'), local('IBMPlexSans-Italic'),
src:
local('IBM Plex Sans Italic'),
local('IBMPlexSans-Italic'),
url('/fonts/IBMPlexSans-Italic.woff2') format('woff2');
}
@font-face {
font-family: 'IBM Plex Sans';
font-style: normal;
font-weight: 600;
font-display: swap;
src: local('IBM Plex Sans SemiBold'), local('IBMPlexSans-SemiBold'),
src:
local('IBM Plex Sans SemiBold'),
local('IBMPlexSans-SemiBold'),
url('/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
}
@font-face {
font-family: 'IBM Plex Sans';
font-style: italic;
font-weight: 600;
font-display: swap;
src: local('IBM Plex Sans SemiBoldItalic'),
src:
local('IBM Plex Sans SemiBoldItalic'),
local('IBMPlexSans-SemiBoldItalic'),
url('/fonts/IBMPlexSans-SemiBoldItalic.woff2') format('woff2');
}
Expand All @@ -60,15 +71,19 @@
font-style: normal;
font-weight: 500;
font-display: swap;
src: local('IBM Plex Serif Regular'), local('IBMPlexSerif-Regular'),
src:
local('IBM Plex Serif Regular'),
local('IBMPlexSerif-Regular'),
url('/fonts/IBMPlexSerif-Regular.woff2') format('woff2');
}
@font-face {
font-family: 'IBM Plex Serif';
font-style: normal;
font-weight: 600;
font-display: swap;
src: local('IBM Plex Serif SemiBold'), local('IBMPlexSerif-SemiBold'),
src:
local('IBM Plex Serif SemiBold'),
local('IBMPlexSerif-SemiBold'),
url('/fonts/IBMPlexSerif-SemiBold.woff2') format('woff2');
}

Expand Down
6 changes: 4 additions & 2 deletions src/pages/examples.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
position: relative;
border-radius: 5px;
margin-bottom: 1rem;
box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px,
rgba(17, 24, 39, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
box-shadow:
rgb(255, 255, 255) 0px 0px 0px 0px,
rgba(17, 24, 39, 0.05) 0px 0px 0px 1px,
rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
}

Expand Down
16 changes: 8 additions & 8 deletions src/pages/examples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ const Uppy = ({ state, locale }) => {
theme={state.theme}
disabled={state.disabled}
note={
state.restrictions
? 'Images and video only, 2–3 files, up to 1 MB'
: null
state.restrictions ?
'Images and video only, 2–3 files, up to 1 MB'
: null
}
/>
</div>
Expand Down Expand Up @@ -320,11 +320,11 @@ function Page() {
title={title}
checked={
// Forgive me for this logic
Array.isArray(state[type])
? state[type].includes(value)
: type === 'theme'
? state.theme === 'dark'
: state[type]
Array.isArray(state[type]) ?
state[type].includes(value)
: type === 'theme' ?
state.theme === 'dark'
: state[type]
}
disabled={disabled}
onChange={(event) =>
Expand Down
11 changes: 8 additions & 3 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@
background-color: #fff;
padding: 5px;
border-radius: 10px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.05);
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.1),
0 2px 5px rgba(0, 0, 0, 0.05);
}

@media screen and (min-width: 50rem) {
Expand Down Expand Up @@ -319,8 +321,11 @@
}
.frameworks-wrapper div:nth-of-type(2) {
grid-column: 7 / 13;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.12),
0 4px 4px rgba(0, 0, 0, 0.12), 0 8px 8px rgba(0, 0, 0, 0.12),
box-shadow:
0 1px 1px rgba(0, 0, 0, 0.12),
0 2px 2px rgba(0, 0, 0, 0.12),
0 4px 4px rgba(0, 0, 0, 0.12),
0 8px 8px rgba(0, 0, 0, 0.12),
0 16px 16px rgba(0, 0, 0, 0.12);
}
}
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14028,12 +14028,12 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:2.8.1":
version: 2.8.1
resolution: "prettier@npm:2.8.1"
"prettier@npm:3.2.5":
version: 3.2.5
resolution: "prettier@npm:3.2.5"
bin:
prettier: bin-prettier.js
checksum: 135801ef4c609f24f3606607f8b4e71bd42d6a2efb2579d7709d9079377614800a295f9cc5683b10c6070381106e805e00700a278a506b79a4e29c3548ef4ec1
prettier: bin/prettier.cjs
checksum: d509f9da0b70e8cacc561a1911c0d99ec75117faed27b95cc8534cb2349667dee6351b0ca83fa9d5703f14127faa52b798de40f5705f02d843da133fc3aa416a
languageName: node
linkType: hard

Expand Down Expand Up @@ -17723,7 +17723,7 @@ __metadata:
lint-staged: "npm:^13.0.3"
mdast-comment-marker: "npm:^2.1.0"
npm-run-all: "npm:^4.1.5"
prettier: "npm:2.8.1"
prettier: "npm:3.2.5"
prism-react-renderer: "npm:^2.1.0"
react: "npm:^18.2.0"
react-dom: "npm:^18.2.0"
Expand Down

0 comments on commit 021574d

Please sign in to comment.